Go to the documentation of this file. 28 # define CH_assert_str(s) # s 29 # define CH_assert_xstr(s) CH_assert_str(s) 30 # define CH_assert(cond) if (!(cond)) \ 32 CH_XD::MayDay::Abort( __FILE__ ":" CH_assert_xstr(__LINE__) ": Assertion `" #cond "' failed."); \ 35 # define CH_assert(cond) (void)0 40 template<
bool>
struct diy_static_assert;
41 template<>
struct diy_static_assert<true>
44 #define STATIC_ASSERT( a ) diy_static_assert<a>() 51 # define CH_assert(cond) if (.NOT. cond) call MAYDAYERROR() 53 # define CH_assert(cond) 60 #endif // include guard