summaryrefslogtreecommitdiff
path: root/src/wayland-private.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/wayland-private.h')
-rw-r--r--src/wayland-private.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wayland-private.h b/src/wayland-private.h
index ac712d9..ef58ccf 100644
--- a/src/wayland-private.h
+++ b/src/wayland-private.h
@@ -36,6 +36,9 @@
#include "wayland-util.h"
+/* Invalid memory address */
+#define WL_ARRAY_POISON_PTR (void *) 4
+
#define ARRAY_LENGTH(a) (sizeof (a) / sizeof (a)[0])
#define container_of(ptr, type, member) ({ \