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 {
var code = k.forHScript().convert(exp).toString(); // tink_macro to the rescue
#if test
#if macrotest
Prelude.print("Compile-time hscript: " + code);
#end
var parser = new Parser();
@@ -364,7 +364,7 @@ class Helpers {
public static function runAtCompileTime(exp:ReaderExp, k:KissState, ?args:Map<String, Dynamic>):ReaderExp {
var value = runAtCompileTimeDynamic(exp, k, args);
var expResult = compileTimeValueToReaderExp(value, exp);
#if test
#if macrotest
Prelude.print('Compile-time value: ${Reader.toString(expResult.def)}');
#end
return expResult;