+static void
+legacyUEP_start (gpointer user_data,
+ const gchar *element_name,
+ const gchar **attribute_names,
+ const gchar **attribute_values) {
+ if ((strcmp (element_name, "legacyUnhandledExceptionPolicy") == 0) &&
+ (attribute_names [0] != NULL) &&
+ (strcmp (attribute_names [0], "enabled") == 0)) {
+ if ((strcmp (attribute_values [0], "1") == 0) ||
+ (g_strcasecmp (attribute_values [0], "true") == 0)) {
+ mono_runtime_unhandled_exception_policy_set (MONO_UNHANLED_POLICY_LEGACY);
+ }
+ }
+}
+
+static const MonoParseHandler
+legacyUEP_handler = {
+ "legacyUnhandledExceptionPolicy",
+ NULL, /* init */
+ legacyUEP_start,
+ NULL, /* text */
+ NULL, /* end */
+ NULL, /* finish */
+};
+