summaryrefslogtreecommitdiff
path: root/src/macros.hpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2023-11-12 13:34:42 +0000
committerVaxry <vaxry@vaxry.net>2023-11-12 13:34:54 +0000
commit69e314207d193eb67be0ae153d50c6c6bcee4b60 (patch)
tree062189da23659b0206ed3b6287652c09959d2b59 /src/macros.hpp
parent1bfd4a2bff5f67872b868d519fbb45b32aa72b1f (diff)
internal: replace INT_MAX with WORKSPACE_INVALID
Diffstat (limited to 'src/macros.hpp')
-rw-r--r--src/macros.hpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/macros.hpp b/src/macros.hpp
index eada3a9f..c2eb98db 100644
--- a/src/macros.hpp
+++ b/src/macros.hpp
@@ -22,6 +22,8 @@
#define STRVAL_EMPTY "[[EMPTY]]"
+#define WORKSPACE_INVALID -1L
+
#define LISTENER(name) \
void listener_##name(wl_listener*, void*); \
inline wl_listener listen_##name = {.notify = listener_##name}