lower the priority of some debug prints to macrotest only

This commit is contained in:
2021-08-04 20:06:27 -06:00
parent e6b42dbaf2
commit 6cb86e9027

View File

@@ -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;