You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-12 13:20:55 +00:00
Mono: Pending exceptions and cleanup
(cherry picked from commit 4739cb8c00)
This commit is contained in:
committed by
Hein-Pieter van Braam
parent
291be24742
commit
e1cf8dc2cb
@@ -32,8 +32,12 @@
|
||||
|
||||
#include "../csharp_script.h"
|
||||
#include "../mono_gc_handle.h"
|
||||
#include "../utils/macros.h"
|
||||
#include "../utils/thread_local.h"
|
||||
#include "gd_mono_utils.h"
|
||||
|
||||
#include <mono/metadata/exception.h>
|
||||
|
||||
namespace GDMonoInternals {
|
||||
|
||||
void tie_managed_to_unmanaged(MonoObject *managed, Object *unmanaged) {
|
||||
@@ -64,4 +68,11 @@ void tie_managed_to_unmanaged(MonoObject *managed, Object *unmanaged) {
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
void unhandled_exception(MonoException *p_exc) {
|
||||
mono_unhandled_exception((MonoObject *)p_exc); // prints the exception as well
|
||||
abort();
|
||||
_UNREACHABLE_();
|
||||
}
|
||||
|
||||
} // namespace GDMonoInternals
|
||||
|
||||
Reference in New Issue
Block a user