[bindings] fix bad use of lasso_return_if_fail in ghashtable backward compatibility header

This commit is contained in:
Benjamin Dauvergne 2010-11-15 17:04:42 +01:00
parent 76dc05434a
commit d6b1288923
1 changed files with 4 additions and 2 deletions

View File

@ -2,6 +2,8 @@
#define G_HASHTABLE_H 1
#if (GLIB_MAJOR_VERSION == 2 && GLIB_MINOR_VERSION < 14)
#include "../lasso/utils.h"
typedef struct _GHashNode GHashNode;
struct _GHashNode
@ -51,7 +53,7 @@ g_hash_table_get_keys (GHashTable *hash_table)
gint i;
GList *retval;
lasso_return_if_fail(hash_table != NULL, NULL);
lasso_return_val_if_fail(hash_table != NULL, NULL);
retval = NULL;
for (i = 0; i < hash_table->size; i++)
@ -68,7 +70,7 @@ g_hash_table_get_values (GHashTable *hash_table)
gint i;
GList *retval;
lasso_return_if_fail(hash_table != NULL, NULL);
lasso_return_val_if_fail(hash_table != NULL, NULL);
retval = NULL;
for (i = 0; i < hash_table->size; i++)