diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-03-31 22:11:13 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-03-31 22:11:13 +0200 |
commit | 90b2723e7a5b84dc3be7d059c95aaea1c176d3ce (patch) | |
tree | 7d72eeddf0cda2ea1e2d1416485f3219b7f2b69b /AK | |
parent | 2334ffcbf8d621c0d4feaa6c1323efc0c130e3dc (diff) | |
download | serenity-90b2723e7a5b84dc3be7d059c95aaea1c176d3ce.zip |
AK: Tweak CALLABLE_WHEN macro in Retained.
Diffstat (limited to 'AK')
-rw-r--r-- | AK/Retained.h | 2 |
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 |