mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-07-16 15:10:23 +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
@@ -70,8 +70,8 @@ g_async_queue_new (void)
|
||||
GAsyncQueue *
|
||||
g_async_queue_ref (GAsyncQueue *queue)
|
||||
{
|
||||
g_return_if_fail (queue);
|
||||
g_return_if_fail (g_atomic_int_get (&queue->ref_count) > 0);
|
||||
g_return_val_if_fail (queue, NULL);
|
||||
g_return_val_if_fail (g_atomic_int_get (&queue->ref_count) > 0, NULL);
|
||||
|
||||
g_atomic_int_inc (&queue->ref_count);
|
||||
|
||||
|
Reference in New Issue
Block a user