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:
Niels De Graef
2019-06-17 23:42:01 +02:00
parent 576330edce
commit 769a02b630
47 changed files with 207 additions and 211 deletions

View File

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