macros - Haxe: add @:build metadata to all classes in project -
is possible apply type building macro classes in project without modifying code?
i'm trying implement debugger based on haxe macros: inject calls function between every expression in every function of class. have interface idebuggable
, code in classes implement interface can stopped @ breakpoints.
you can use haxe.macro.compiler.addglobalmetadata()
this. can either done initialization macro or on command line:
--macro addglobalmetadata('', '@:build(build.build())')
Comments
Post a Comment