This commit is contained in:
Kovid Goyal
2024-05-16 20:17:15 +05:30
parent 32f3d43aa0
commit b5022cbd81
4 changed files with 8 additions and 10 deletions

2
glfw/linux_notify.c vendored
View File

@@ -15,8 +15,6 @@
static inline void cleanup_free(void *p) { free(*(void**)p); }
#define RAII_ALLOC(type, name, initializer) __attribute__((cleanup(cleanup_free))) type *name = initializer
static inline void cleanup_msg(void *p) { dbus_message_unref(*(DBusMessage**)p); *(DBusMessage**)p = NULL; }
#define RAII_MSG(name, initializer) __attribute__((cleanup(cleanup_msg))) DBusMessage *name = initializer
static notification_id_type notification_id = 0;