wrapper/compiler.h: Implement __LTTNG_COMPOUND_LITERAL
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 6 Apr 2020 16:00:47 +0000 (12:00 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 13 Apr 2020 14:43:04 +0000 (10:43 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
wrapper/compiler.h

index d0d63d7b2c5401dfef0fe14c620e2c30c1370f45..38974c062e0cc9428ee9541c7b8ac2fca736210c 100644 (file)
@@ -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 */
This page took 0.026138 seconds and 4 git commands to generate.