mirror of
https://github.com/brl/mutter.git
synced 2024-12-23 19:42:05 +00:00
[cogl-handle] Fix the broken debug macros
The debug macros for tracking reference counting of CoglHandles had some typos introduced in c3d9f0 which meant it failed to compile when COGL_DEBUG is 1.
This commit is contained in:
parent
e464acff7a
commit
3fdacf9762
@ -59,7 +59,7 @@ typedef struct _CoglHandleObject
|
||||
CoglHandleObject *obj = (CoglHandleObject *)handle; \
|
||||
printf ("COGL %s REF %p %i\n", \
|
||||
g_quark_to_string ((obj)->klass->type), \
|
||||
(obj), (obj)->ref_count) \
|
||||
(obj), (obj)->ref_count); \
|
||||
} while (0)
|
||||
|
||||
#define _COGL_HANDLE_DEBUG_UNREF(type_name, handle) \
|
||||
@ -67,7 +67,7 @@ typedef struct _CoglHandleObject
|
||||
CoglHandleObject *obj = (CoglHandleObject *)handle; \
|
||||
printf ("COGL %s UNREF %p %i\n", \
|
||||
g_quark_to_string ((obj)->klass->type), \
|
||||
(obj), (obj)->ref_count - 1)
|
||||
(obj), (obj)->ref_count - 1); \
|
||||
} while (0)
|
||||
|
||||
#define COGL_HANDLE_DEBUG_FREE(obj) \
|
||||
|
Loading…
Reference in New Issue
Block a user