14 lines
245 B
Haxe
Raw Permalink Normal View History

2025-01-22 16:18:30 +01:00
package kha;
import haxe.macro.Context;
import haxe.macro.Expr;
class Macros {
public static macro function canvasId(): Expr {
return {
expr: EConst(CString(Context.getDefines().get("canvas_id"))),
pos: Context.currentPos()
};
}
}