fix g_return_if_fail, g_assert and friends to have a body for

Sun Aug 12 21:05:13 2001  Tim Janik  <timj@gtk.org>

        * glib/gmessages.h: fix g_return_if_fail, g_assert and friends to
        have a body for G_DISABLE_CHECKS and G_DISABLE_ASSERT.
        fixes #58873.
This commit is contained in:
Tim Janik 2001-08-12 19:08:13 +00:00 committed by Tim Janik
parent c433e8649a
commit 936c1886ad
9 changed files with 54 additions and 6 deletions

View File

@ -1,3 +1,9 @@
Sun Aug 12 21:05:13 2001 Tim Janik <timj@gtk.org>
* glib/gmessages.h: fix g_return_if_fail, g_assert and friends to
have a body for G_DISABLE_CHECKS and G_DISABLE_ASSERT.
fixes #58873.
2001-08-12 Ron Steinke <rsteinke@w-link.net>
* glib/giochannel.c: safer handling of errno, fixed

View File

@ -1,3 +1,9 @@
Sun Aug 12 21:05:13 2001 Tim Janik <timj@gtk.org>
* glib/gmessages.h: fix g_return_if_fail, g_assert and friends to
have a body for G_DISABLE_CHECKS and G_DISABLE_ASSERT.
fixes #58873.
2001-08-12 Ron Steinke <rsteinke@w-link.net>
* glib/giochannel.c: safer handling of errno, fixed

View File

@ -1,3 +1,9 @@
Sun Aug 12 21:05:13 2001 Tim Janik <timj@gtk.org>
* glib/gmessages.h: fix g_return_if_fail, g_assert and friends to
have a body for G_DISABLE_CHECKS and G_DISABLE_ASSERT.
fixes #58873.
2001-08-12 Ron Steinke <rsteinke@w-link.net>
* glib/giochannel.c: safer handling of errno, fixed

View File

@ -1,3 +1,9 @@
Sun Aug 12 21:05:13 2001 Tim Janik <timj@gtk.org>
* glib/gmessages.h: fix g_return_if_fail, g_assert and friends to
have a body for G_DISABLE_CHECKS and G_DISABLE_ASSERT.
fixes #58873.
2001-08-12 Ron Steinke <rsteinke@w-link.net>
* glib/giochannel.c: safer handling of errno, fixed

View File

@ -1,3 +1,9 @@
Sun Aug 12 21:05:13 2001 Tim Janik <timj@gtk.org>
* glib/gmessages.h: fix g_return_if_fail, g_assert and friends to
have a body for G_DISABLE_CHECKS and G_DISABLE_ASSERT.
fixes #58873.
2001-08-12 Ron Steinke <rsteinke@w-link.net>
* glib/giochannel.c: safer handling of errno, fixed

View File

@ -1,3 +1,9 @@
Sun Aug 12 21:05:13 2001 Tim Janik <timj@gtk.org>
* glib/gmessages.h: fix g_return_if_fail, g_assert and friends to
have a body for G_DISABLE_CHECKS and G_DISABLE_ASSERT.
fixes #58873.
2001-08-12 Ron Steinke <rsteinke@w-link.net>
* glib/giochannel.c: safer handling of errno, fixed

View File

@ -1,3 +1,9 @@
Sun Aug 12 21:05:13 2001 Tim Janik <timj@gtk.org>
* glib/gmessages.h: fix g_return_if_fail, g_assert and friends to
have a body for G_DISABLE_CHECKS and G_DISABLE_ASSERT.
fixes #58873.
2001-08-12 Ron Steinke <rsteinke@w-link.net>
* glib/giochannel.c: safer handling of errno, fixed

View File

@ -1,3 +1,9 @@
Sun Aug 12 21:05:13 2001 Tim Janik <timj@gtk.org>
* glib/gmessages.h: fix g_return_if_fail, g_assert and friends to
have a body for G_DISABLE_CHECKS and G_DISABLE_ASSERT.
fixes #58873.
2001-08-12 Ron Steinke <rsteinke@w-link.net>
* glib/giochannel.c: safer handling of errno, fixed

View File

@ -186,8 +186,8 @@ GPrintFunc g_set_message_handler (GPrintFunc func);
#ifdef G_DISABLE_ASSERT
#define g_assert(expr)
#define g_assert_not_reached()
#define g_assert(expr) G_STMT_START{ }G_STMT_END
#define g_assert_not_reached() G_STMT_START{ }G_STMT_END
#else /* !G_DISABLE_ASSERT */
@ -236,10 +236,10 @@ GPrintFunc g_set_message_handler (GPrintFunc func);
#ifdef G_DISABLE_CHECKS
#define g_return_if_fail(expr)
#define g_return_val_if_fail(expr,val)
#define g_return_if_reached() return
#define g_return_val_if_reached(val) return (val)
#define g_return_if_fail(expr) G_STMT_START{ }G_STMT_END
#define g_return_val_if_fail(expr,val) G_STMT_START{ }G_STMT_END
#define g_return_if_reached() G_STMT_START{ return; }G_STMT_END
#define g_return_val_if_reached(val) G_STMT_START{ return (val); }G_STMT_END
#else /* !G_DISABLE_CHECKS */