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

Popular posts from this blog

testing - Detect whether test has failed within fixture -

AbotX : How do you create a parallel crawler that stays on and can be added to at run time from new requests -

android - Create single AAR file from multiple modules using Gradle -