Go to the documentation of this file.
74 : (std::fprintf(stderr, "%s:%u: failed assertion '%s'\n", \
75 __FILE__, __LINE__, #x), \
82 # define ASSERT_MSG(x, msg, ...) \
85 : (std::fprintf(stderr, "%s:%u: failed assertion '%s': " msg "\n", \
86 __FILE__, __LINE__, #x, __VA_ARGS__), \
91 # define ASSERTMSG ASSERT_MSG
99 # define DASSERT(x) ASSERT(x)
102 # define DASSERT(x) ((void)sizeof(x))
109 # define DASSERT_MSG ASSERT_MSG
112 # define DASSERT_MSG(x, ...) ((void)sizeof(x))
116 # define DASSERTMSG DASSERT_MSG
124 #if (__cplusplus >= 201700L)
125 # define OIIO_STATIC_ASSERT(cond) static_assert(cond)
126 # define OIIO_STATIC_ASSERT_MSG(cond, msg) static_assert(cond, msg)
128 # define OIIO_STATIC_ASSERT(cond) static_assert(cond, "")
129 # define OIIO_STATIC_ASSERT_MSG(cond, msg) static_assert(cond, msg)