From b62ac2a44d6a976af551d474f78fdf18da68ae22 Mon Sep 17 00:00:00 2001 From: Dmitri Granetchi Date: Thu, 8 May 2014 00:49:54 +0300 Subject: [PATCH] fix macro context --- src/bindx/MetaUtils.hx | 5 ++++- test.hxml | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/bindx/MetaUtils.hx b/src/bindx/MetaUtils.hx index 79eab3e..ecd6395 100644 --- a/src/bindx/MetaUtils.hx +++ b/src/bindx/MetaUtils.hx @@ -1,5 +1,6 @@ package bindx; +#if macro import haxe.macro.Type; import haxe.macro.Expr; import haxe.macro.Context; @@ -66,4 +67,6 @@ class ExprMetaUtils { static public inline function isNullOrTrue(expr:Expr):Bool return expr == null || isTrue(expr); -} \ No newline at end of file +} + +#end \ No newline at end of file diff --git a/test.hxml b/test.hxml index 5459893..c6bf10e 100644 --- a/test.hxml +++ b/test.hxml @@ -1,5 +1,5 @@ -main Tests -cp src -cp test --neko bin/bind.n +-swf bin/bind.swf -D dump=pretty \ No newline at end of file