From 62e08b7bd442c5455d10de62ddf60c667629ded7 Mon Sep 17 00:00:00 2001 From: Jarrio Date: Wed, 5 Mar 2025 11:37:05 +0000 Subject: [PATCH] Update Macro.hx --- hxcpp-debug-server/hxcpp/debug/jsonrpc/Macro.hx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hxcpp-debug-server/hxcpp/debug/jsonrpc/Macro.hx b/hxcpp-debug-server/hxcpp/debug/jsonrpc/Macro.hx index ddd0c8b..d540467 100644 --- a/hxcpp-debug-server/hxcpp/debug/jsonrpc/Macro.hx +++ b/hxcpp-debug-server/hxcpp/debug/jsonrpc/Macro.hx @@ -6,7 +6,9 @@ import haxe.macro.Compiler; class Macro { macro public static function injectServer():Void { if (Context.defined("cpp") && Context.defined("debug")) { - Context.getType("hxcpp.debug.jsonrpc.Server"); + Context.onAfterInitMacros(() -> { + Context.getType("hxcpp.debug.jsonrpc.Server"); + }); Compiler.define("HXCPP_DEBUGGER"); } }