copied mono-api-diff.cs from mono-2-2 branch so new patch can be applied and history...
[mono.git] / eglib / src / goutput.c
index 3a5b6463909e61172b1e84ca82a7f38352ee179f..3a12201735eaf0970bb52da4f23c730955a47c97 100644 (file)
@@ -73,8 +73,11 @@ g_logv (const gchar *log_domain, GLogLevelFlags log_level, const gchar *format,
                log_domain != NULL ? ": " : "",
                msg);
        free (msg);
-       if (log_level & fatal)
+       if (log_level & fatal){
+               fflush (stdout);
+               fflush (stderr);
                abort ();
+       }
 }
 
 void
@@ -87,3 +90,13 @@ g_log (const gchar *log_domain, GLogLevelFlags log_level, const gchar *format, .
        va_end (args);
 }
 
+void
+g_assertion_message (const gchar *format, ...)
+{
+       va_list args;
+
+       va_start (args, format);
+       g_logv (G_LOG_DOMAIN, G_LOG_LEVEL_ERROR, format, args);
+       va_end (args);
+}
+