lower the priority of some debug prints to macrotest only
This commit is contained in:
@@ -313,7 +313,7 @@ class Helpers {
|
|||||||
|
|
||||||
public static function runAtCompileTimeDynamic(exp:ReaderExp, k:KissState, ?args:Map<String, Dynamic>):Dynamic {
|
public static function runAtCompileTimeDynamic(exp:ReaderExp, k:KissState, ?args:Map<String, Dynamic>):Dynamic {
|
||||||
var code = k.forHScript().convert(exp).toString(); // tink_macro to the rescue
|
var code = k.forHScript().convert(exp).toString(); // tink_macro to the rescue
|
||||||
#if test
|
#if macrotest
|
||||||
Prelude.print("Compile-time hscript: " + code);
|
Prelude.print("Compile-time hscript: " + code);
|
||||||
#end
|
#end
|
||||||
var parser = new Parser();
|
var parser = new Parser();
|
||||||
@@ -364,7 +364,7 @@ class Helpers {
|
|||||||
public static function runAtCompileTime(exp:ReaderExp, k:KissState, ?args:Map<String, Dynamic>):ReaderExp {
|
public static function runAtCompileTime(exp:ReaderExp, k:KissState, ?args:Map<String, Dynamic>):ReaderExp {
|
||||||
var value = runAtCompileTimeDynamic(exp, k, args);
|
var value = runAtCompileTimeDynamic(exp, k, args);
|
||||||
var expResult = compileTimeValueToReaderExp(value, exp);
|
var expResult = compileTimeValueToReaderExp(value, exp);
|
||||||
#if test
|
#if macrotest
|
||||||
Prelude.print('Compile-time value: ${Reader.toString(expResult.def)}');
|
Prelude.print('Compile-time value: ${Reader.toString(expResult.def)}');
|
||||||
#end
|
#end
|
||||||
return expResult;
|
return expResult;
|
||||||
|
|||||||
Reference in New Issue
Block a user