Go to the documentation of this file.
32 #ifndef OPENIMAGEIO_DASSERT_H
33 #define OPENIMAGEIO_DASSERT_H
70 : (fprintf (stderr, "%s:%u: failed assertion '%s'\n", \
71 __FILE__, __LINE__, #x), abort()))
77 # define ASSERT_MSG(x,msg,...) \
79 : (fprintf (stderr, "%s:%u: failed assertion '%s': " msg "\n", \
80 __FILE__, __LINE__, #x, __VA_ARGS__), abort()))
84 #define ASSERTMSG ASSERT_MSG
92 # define DASSERT(x) ASSERT(x)
95 # define DASSERT(x) ((void)sizeof(x))
102 # define DASSERT_MSG ASSERT_MSG
104 # define DASSERT_MSG(x,...) ((void)sizeof(x))
108 #define DASSERTMSG DASSERT_MSG
113 #endif // OPENIMAGEIO_DASSERT_H