mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-22 17:08:53 +02:00
glib/gasyncqueue.c glib/ghook.c g_return_if_fail -> g_return_val_if_fail
Mon Nov 8 10:45:50 2004 Manish Singh <yosh@gimp.org> * glib/gasyncqueue.c * glib/ghook.c * glib/giochannel.c: g_return_if_fail -> g_return_val_if_fail * glib/gmain.c: Ditto, plus also make g_main_context_ref() actually return the passed in pointer.
This commit is contained in:
committed by
Manish Singh
parent
c83e52605f
commit
f026692d2a
@@ -595,10 +595,12 @@ g_poll (GPollFD *fds,
|
||||
GMainContext *
|
||||
g_main_context_ref (GMainContext *context)
|
||||
{
|
||||
g_return_if_fail (context != NULL);
|
||||
g_return_if_fail (g_atomic_int_get (&context->ref_count) > 0);
|
||||
g_return_val_if_fail (context != NULL, NULL);
|
||||
g_return_val_if_fail (g_atomic_int_get (&context->ref_count) > 0, NULL);
|
||||
|
||||
g_atomic_int_inc (&context->ref_count);
|
||||
|
||||
return context;
|
||||
}
|
||||
|
||||
/* If DISABLE_MEM_POOLS is defined, then freeing the
|
||||
|
Reference in New Issue
Block a user