Skip to content

Commit cbe0a9b

Browse files
authored
Update Macro.hx (#40)
1 parent 3613442 commit cbe0a9b

File tree

1 file changed

+3
-1
lines changed
  • hxcpp-debug-server/hxcpp/debug/jsonrpc

1 file changed

+3
-1
lines changed

hxcpp-debug-server/hxcpp/debug/jsonrpc/Macro.hx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ import haxe.macro.Compiler;
66
class Macro {
77
macro public static function injectServer():Void {
88
if (Context.defined("cpp") && Context.defined("debug")) {
9-
Context.getType("hxcpp.debug.jsonrpc.Server");
9+
Context.onAfterInitMacros(() -> {
10+
Context.getType("hxcpp.debug.jsonrpc.Server");
11+
});
1012
Compiler.define("HXCPP_DEBUGGER");
1113
}
1214
}

0 commit comments

Comments
 (0)