Include implementation of g_return_if_fail_internal().
authorOwen Taylor <otaylor@redhat.com>
Thu, 9 Sep 2004 17:55:05 +0000 (17:55 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Thu, 9 Sep 2004 17:55:05 +0000 (17:55 +0000)
Thu Sep  9 13:52:26 2004  Owen Taylor  <otaylor@redhat.com>

        * glib/gmessages.c (g_return_if_fail_warning):
        Include implementation of g_return_if_fail_internal().

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-6
ChangeLog.pre-2-8
glib/gmessages.c

index 38eb64b..d92f9eb 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Thu Sep  9 13:52:26 2004  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/gmessages.c (g_return_if_fail_warning): 
+       Include implementation of g_return_if_fail_internal().
+
 Thu Sep  9 10:37:41 2004  Owen Taylor  <otaylor@redhat.com>
 
        * glib/gmessages.h (g_return_[val_]if_fail): Use
index 38eb64b..d92f9eb 100644 (file)
@@ -1,3 +1,8 @@
+Thu Sep  9 13:52:26 2004  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/gmessages.c (g_return_if_fail_warning): 
+       Include implementation of g_return_if_fail_internal().
+
 Thu Sep  9 10:37:41 2004  Owen Taylor  <otaylor@redhat.com>
 
        * glib/gmessages.h (g_return_[val_]if_fail): Use
index 38eb64b..d92f9eb 100644 (file)
@@ -1,3 +1,8 @@
+Thu Sep  9 13:52:26 2004  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/gmessages.c (g_return_if_fail_warning): 
+       Include implementation of g_return_if_fail_internal().
+
 Thu Sep  9 10:37:41 2004  Owen Taylor  <otaylor@redhat.com>
 
        * glib/gmessages.h (g_return_[val_]if_fail): Use
index 38eb64b..d92f9eb 100644 (file)
@@ -1,3 +1,8 @@
+Thu Sep  9 13:52:26 2004  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/gmessages.c (g_return_if_fail_warning): 
+       Include implementation of g_return_if_fail_internal().
+
 Thu Sep  9 10:37:41 2004  Owen Taylor  <otaylor@redhat.com>
 
        * glib/gmessages.h (g_return_[val_]if_fail): Use
index 38eb64b..d92f9eb 100644 (file)
@@ -1,3 +1,8 @@
+Thu Sep  9 13:52:26 2004  Owen Taylor  <otaylor@redhat.com>
+
+       * glib/gmessages.c (g_return_if_fail_warning): 
+       Include implementation of g_return_if_fail_internal().
+
 Thu Sep  9 10:37:41 2004  Owen Taylor  <otaylor@redhat.com>
 
        * glib/gmessages.h (g_return_[val_]if_fail): Use
index 00db52d..da1d939 100644 (file)
@@ -560,6 +560,18 @@ g_log (const gchar   *log_domain,
   va_end (args);
 }
 
+void
+g_return_if_fail_warning (const char *log_domain,
+                         const char *pretty_function,
+                         const char *expression)
+{
+  g_log (log_domain,
+        G_LOG_LEVEL_CRITICAL,
+        "%s: assertion `%s' failed",
+        pretty_function,
+        expression);
+}
+
 #define CHAR_IS_SAFE(wc) (!((wc < 0x20 && wc != '\t' && wc != '\n' && wc != '\r') || \
                            (wc == 0x7f) || \
                            (wc >= 0x80 && wc < 0xa0)))