Change-Id: I8762f6aca32418cc200bfa4f5a04b6159781fb5b
Signed-off-by: Olivier Dion <odion@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
}; \
static const struct side_event_description __attribute__((section("side_event_description_ptr"), used)) \
*side_event_ptr__##_identifier = &(_identifier); \
- SIDE_POP_DIAGNOSTIC() SIDE_ACCEPT_COMMA()
+ SIDE_POP_DIAGNOSTIC() SIDE_EXPECT_SEMICOLON()
/*
* In C++, it is not possible to forward declare a static variable. Use
#define SIDE_CAT2_PRIMITIVE(x, y...) x ## y
#define SIDE_CAT2(x, y...) SIDE_CAT2_PRIMITIVE(x, y)
-/* Accept a trailing comma. */
-#define SIDE_ACCEPT_COMMA(...) side_static_assert(1, "", _)
+/* Expect a trailing semicolon. */
+#define SIDE_EXPECT_SEMICOLON(...) side_static_assert(1, "", _)
/*
* The diagnostic macros can be used to turn-off warnings using inline _Pragma.