Skip to content

Instantly share code, notes, and snippets.

@Misiur

Misiur/fudger.hx Secret

Created February 5, 2017 22:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Misiur/e0c0d27b8c08c6fca60ccae6d8903f79 to your computer and use it in GitHub Desktop.
Save Misiur/e0c0d27b8c08c6fca60ccae6d8903f79 to your computer and use it in GitHub Desktop.
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