added reportError
@@ -37,6 +37,12 @@ class System {
return true;
}
+ public dynamic function reportError(e:Dynamic) {
+ var stack = haxe.CallStack.toString(haxe.CallStack.exceptionStack());
+ var err = try Std.string(e) catch( _ : Dynamic ) "????";
+ Sys.println(err + stack);
+ }
+
@:extern public static inline function beginFrame() {
}
