mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 15:36:17 +01:00
Use g_assert() instead of g_return_val_if_fail(), suggested by Sheldon
Wed Dec 17 23:29:17 2003 Matthias Clasen <maclas@gmx.de> * gvalue.c (g_value_peek_pointer): Use g_assert() instead of g_return_val_if_fail(), suggested by Sheldon Simms.
This commit is contained in:
parent
aaa2ab083e
commit
d9d15e8f28
@ -1,3 +1,8 @@
|
||||
Wed Dec 17 23:29:17 2003 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* gvalue.c (g_value_peek_pointer): Use g_assert() instead of
|
||||
g_return_val_if_fail(), suggested by Sheldon Simms.
|
||||
|
||||
2003-12-13 Hans Breuer <hans@breuer.org>
|
||||
|
||||
gobject.def : update externals
|
||||
|
@ -176,7 +176,10 @@ g_value_peek_pointer (const GValue *value)
|
||||
|
||||
value_table = g_type_value_table_peek (G_VALUE_TYPE (value));
|
||||
if (!value_table->value_peek_pointer)
|
||||
g_return_val_if_fail (g_value_fits_pointer (value) == TRUE, NULL);
|
||||
{
|
||||
g_assert (g_value_fits_pointer (value) == TRUE);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return value_table->value_peek_pointer (value);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user