Only trace exprs when unit testing

This commit is contained in:
2020-11-13 12:27:31 -07:00
parent 0a53dc20de
commit d10cb54439
2 changed files with 5 additions and 0 deletions

View File

@@ -1,3 +1,4 @@
src/build-scripts/common-args.hxml
-lib utest
-D test
--main test.TestMain

View File

@@ -20,7 +20,9 @@ class Kiss {
break;
var position = stream.position();
var nextExp = reader.read(stream);
#if test
trace(nextExp);
#end
// The last expression might be a comment, in which case None will be returned
switch (nextExp) {
case Some(nextExp):
@@ -112,7 +114,9 @@ class Kiss {
default:
throw 'cannot convert $exp yet';
};
#if test
trace(expr.expr);
#end
return expr;
}
}