MonoString *ves_icall_System_Exception_get_trace (MonoException *exc) MONO_INTERNAL;
void mono_set_cast_details (MonoClass *from, MonoClass *to) MONO_INTERNAL;
+/* Installs a function which is called when the runtime encounters an unhandled exception.
+ * This hook isn't expected to return.
+ * If no hook has been installed, the runtime will print a message before aborting.
+ */
+typedef void (*MonoUnhandledExceptionFunc) (MonoObject *exc, gpointer user_data);
+void mono_install_unhandled_exception_hook (MonoUnhandledExceptionFunc func, gpointer user_data);
+void mono_invoke_unhandled_exception_hook (MonoObject *exc);
+
/* Dominator/SSA methods */
void mono_compile_dominator_info (MonoCompile *cfg, int dom_flags) MONO_INTERNAL;
void mono_compute_natural_loops (MonoCompile *cfg) MONO_INTERNAL;