* be used as a typedef name.
*/
#if defined (__cplusplus) || __STDC_VERSION__ >= 201112L
-#define lttng_static_assert(predicate, msg, c_identifier_msg) \
+#define lttng_ust_static_assert(predicate, msg, c_identifier_msg) \
static_assert(predicate, msg)
#else
/*
* of negative size which is invalid in C and forces a compiler error. The msg
* parameter is used in the tentative typedef so it is printed to the user.
*/
-#define lttng_static_assert(predicate, msg, c_identifier_msg) \
- typedef char lttng_static_assert_##c_identifier_msg[2*!!(predicate)-1];
+#define lttng_ust_static_assert(predicate, msg, c_identifier_msg) \
+ typedef char lttng_ust_static_assert_##c_identifier_msg[2*!!(predicate)-1];
#endif
#endif /* _LTTNG_UST_COMPILER_H */
* user are of an integral type.
*/
#define lttng_ust_ctf_array_element_type_is_supported(type, item) \
- lttng_static_assert(lttng_ust_is_integer_type(type), \
+ lttng_ust_static_assert(lttng_ust_is_integer_type(type), \
"Non-integer type `" #item "` not supported as element of CTF_ARRAY or CTF_SEQUENCE", \
Non_integer_type__##item##__not_supported_as_element_of_CTF_ARRAY_or_CTF_SEQUENCE);