mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-27 14:36:16 +01:00
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:
parent
c433e8649a
commit
936c1886ad
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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 */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user