Skip to content

Instantly share code, notes, and snippets.

@Misiur Misiur/fudger.hx Secret
Created Feb 5, 2017

Embed
What would you like to do?
package;
#if macro
import neko.vm.Mutex;
import haxe.macro.Expr.Field;
#end
#if !macro
@:build(Macro.build())
class Main
{
public static function main() {
}
}
#else
class Macro
{
private static var mutex:Mutex = new Mutex();
public static function build():Array<Field>
{
return [];
}
}
#end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.