macrotest preserve more callstacks

This commit is contained in:
2021-06-26 11:08:30 -06:00
parent e248249815
commit 6358a10de7
2 changed files with 7 additions and 1 deletions

View File

@@ -75,4 +75,6 @@ Hopefully someday:
## Limitations
* No pattern matching in macros
* No pattern matching in macros
* No type checking in macro definitions
* Macros are extremely hard to debug

View File

@@ -78,8 +78,11 @@ class Kiss {
}
static function _try<T>(operation:() -> T):Null<T> {
#if !macrotest
try {
#end
return operation();
#if !macrotest
} catch (err:StreamError) {
Sys.stderr().writeString(err + "\n");
Sys.exit(1);
@@ -98,6 +101,7 @@ class Kiss {
Sys.exit(1);
return null;
}
#end
}
/**