summaryrefslogtreecommitdiff
path: root/AK
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-03-31 22:11:13 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-03-31 22:11:13 +0200
commit90b2723e7a5b84dc3be7d059c95aaea1c176d3ce (patch)
tree7d72eeddf0cda2ea1e2d1416485f3219b7f2b69b /AK
parent2334ffcbf8d621c0d4feaa6c1323efc0c130e3dc (diff)
downloadserenity-90b2723e7a5b84dc3be7d059c95aaea1c176d3ce.zip
AK: Tweak CALLABLE_WHEN macro in Retained.
Diffstat (limited to 'AK')
-rw-r--r--AK/Retained.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/AK/Retained.h b/AK/Retained.h
index 849e96b2b5..1b27e5d3a1 100644
--- a/AK/Retained.h
+++ b/AK/Retained.h
@@ -4,7 +4,7 @@
#ifdef __clang__
#define CONSUMABLE(initial_state) __attribute__((consumable(initial_state)))
-#define CALLABLE_WHEN(state) __attribute__((callable_when(state)))
+#define CALLABLE_WHEN(...) __attribute__((callable_when(__VA_ARGS__)))
#define SET_TYPESTATE(state) __attribute__((set_typestate(state)))
#define RETURN_TYPESTATE(state) __attribute__((return_typestate(state)))
#else