git » sdk » commit 7d217af

Default unhandled exception should abort

author Stephen Paul Weber
2026-06-22 14:19:40 UTC
committer Stephen Paul Weber
2026-06-22 14:19:40 UTC
parent 6947413c0f9278594a51bcc89748fabc2fe4962c

Default unhandled exception should abort

Otherwise we proceed in an unknown state and probably seqfault.

HaxeCBridge.hx +1 -0

diff --git a/HaxeCBridge.hx b/HaxeCBridge.hx
index abcf8ef..417a937 100644
--- a/HaxeCBridge.hx
+++ b/HaxeCBridge.hx
@@ -952,6 +952,7 @@ class HaxeCBridge {
 
 				void defaultExceptionHandler(const char* info) {
 					fprintf(stderr, "Unhandled Borogove exception: %s\\n", info);
+					abort();
 				}
 
 				typedef void (* MainThreadCallback)(void* data);