forked from LeenkxTeam/LNXSDK
Update Files
This commit is contained in:
13
Kha/Backends/HTML5/kha/Macros.hx
Normal file
13
Kha/Backends/HTML5/kha/Macros.hx
Normal file
@ -0,0 +1,13 @@
|
||||
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()
|
||||
};
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user