From: Mathieu Desnoyers Date: Mon, 6 Apr 2020 16:00:47 +0000 (-0400) Subject: wrapper/compiler.h: Implement __LTTNG_COMPOUND_LITERAL X-Git-Tag: before-upstreaming~1 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=0a25550c99fa5591d09238330767af7fe14e46a4;p=lttng-modules.git wrapper/compiler.h: Implement __LTTNG_COMPOUND_LITERAL Signed-off-by: Mathieu Desnoyers --- diff --git a/wrapper/compiler.h b/wrapper/compiler.h index d0d63d7b..38974c06 100644 --- a/wrapper/compiler.h +++ b/wrapper/compiler.h @@ -39,4 +39,6 @@ # define WRITE_ONCE(x, val) ({ ACCESS_ONCE(x) = val; }) #endif +#define __LTTNG_COMPOUND_LITERAL(type, ...) (type[]) { __VA_ARGS__ } + #endif /* _LTTNG_WRAPPER_COMPILER_H */