mistake in my g_return_if_reached patch



There was a typo in my patch. I was looking over the code and noticed it.

Index: glib.h
===================================================================
RCS file: /cvs/gnome/glib/glib.h,v
retrieving revision 1.181
diff -p -u -r1.181 glib.h
--- glib.h    2000/07/25 22:48:09    1.181
+++ glib.h    2000/07/26 00:26:34
@@ -462,7 +462,7 @@ extern "C" {
 #define g_return_if_reached()        G_STMT_START{            \
      g_log (G_LOG_DOMAIN,                                     \
         G_LOG_LEVEL_CRITICAL,                                 \
-        "file %s: line %d (%s): assertion `%s' failed",       \
+        "file %s: line %d (%s): should not be reached",       \
         __FILE__,                                             \
         __LINE__,                                             \
         __PRETTY_FUNCTION__);                                 \
@@ -506,7 +506,7 @@ extern "C" {
 #define g_return_if_reached()        G_STMT_START{            \
      g_log (G_LOG_DOMAIN,                                     \
         G_LOG_LEVEL_CRITICAL,                                 \
-        "file %s: line %d: assertion `%s' failed",            \
+        "file %s: line %d: should not be reached",            \
         __FILE__,                                             \
         __LINE__);                                            \
      return;                }G_STMT_END
===================================================================

My apologies for not catching my mistake before that patch was committed.

    -- Darin





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]