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

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -