1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-13 13:31:48 +00:00

Mono: Use exit(status) instead of abort() in exception hook

This commit is contained in:
Ignacio Etcheverry
2019-04-18 13:58:55 +02:00
parent d1f98ff51b
commit 8759c0e31a
3 changed files with 6 additions and 7 deletions

View File

@@ -111,7 +111,8 @@ void tie_managed_to_unmanaged(MonoObject *managed, Object *unmanaged) {
void unhandled_exception(MonoException *p_exc) {
mono_unhandled_exception((MonoObject *)p_exc); // prints the exception as well
abort();
// Too bad 'mono_invoke_unhandled_exception_hook' is not exposed to embedders
GDMono::unhandled_exception_hook((MonoObject *)p_exc, NULL);
GD_UNREACHABLE();
}