summaryrefslogtreecommitdiff
path: root/src/glibext/objhole-int.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/glibext/objhole-int.h')
-rw-r--r--src/glibext/objhole-int.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/src/glibext/objhole-int.h b/src/glibext/objhole-int.h
index b4abf6f..aa8a1f8 100644
--- a/src/glibext/objhole-int.h
+++ b/src/glibext/objhole-int.h
@@ -142,23 +142,23 @@ struct _GThickObjectClass
/* GLib 2.83.0 - cfa36f5e9 */
#define GOBJECT_RESERVED_EXTRA_BITS 5
-#define GET_GOBJECT_EXTRA(obj, tp) \
- ({ \
- BUILD_BUG_ON(sizeof(tp) > sizeof(guint)); \
- tp *___result; \
- guint __val; \
- __val = g_thick_object_get_extra(obj); \
- ___result = (tp *)(guint []){ __val }; \
- ___result; \
+#define GET_GOBJECT_EXTRA(obj, tp) \
+ ({ \
+ BUILD_BUG_ON(sizeof(tp) > sizeof(guint)); \
+ tp ___result; \
+ guint __val; \
+ __val = g_thick_object_get_extra(G_THICK_OBJECT(obj)); \
+ ___result = *(tp *)(guint []){ __val }; \
+ ___result; \
})
-#define SET_GOBJECT_EXTRA(obj, tp, data) \
- ({ \
- BUILD_BUG_ON(sizeof(tp) > sizeof(guint)); \
- BUILD_BUG_ON(sizeof(data) > sizeof(guint *)); \
- guint __val; \
- __val = *(guint *)data; \
- g_thick_object_set_extra(obj, __val); \
+#define SET_GOBJECT_EXTRA(obj, tp, data) \
+ ({ \
+ BUILD_BUG_ON(sizeof(tp) > sizeof(guint)); \
+ BUILD_BUG_ON(sizeof(data) > sizeof(guint *)); \
+ guint __val; \
+ __val = *(guint *)data; \
+ g_thick_object_set_extra(G_THICK_OBJECT(obj), __val); \
})