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:
Matthias Clasen 2003-12-17 22:29:07 +00:00 committed by Matthias Clasen
parent aaa2ab083e
commit d9d15e8f28
2 changed files with 9 additions and 1 deletions

View File

@ -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

View File

@ -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);
}