mirror of
https://github.com/brl/mutter.git
synced 2025-07-05 18:39:52 +00:00
cogl: Drop _COGL_RETURN_VAL_IF_FAIL macro
This was introduced when the Cogl maintainers tried to move away from GLib. Since we always require it, we can just use `g_return_val_if_fail()` immediately. https://gitlab.gnome.org/GNOME/mutter/merge_requests/629
This commit is contained in:
@ -46,7 +46,7 @@ cogl_object_ref (void *object)
|
||||
{
|
||||
CoglObject *obj = object;
|
||||
|
||||
_COGL_RETURN_VAL_IF_FAIL (object != NULL, NULL);
|
||||
g_return_val_if_fail (object != NULL, NULL);
|
||||
|
||||
obj->ref_count++;
|
||||
return object;
|
||||
|
Reference in New Issue
Block a user