Go to the documentation of this file. 16 #ifndef _BASIS_ASSERT_H 17 #define _BASIS_ASSERT_H 44 # define assert(condition) \ 47 ::std::cerr << "Assertion `" #condition "` failed in " << __FILE__ \ 48 << " line " << __LINE__ << ::std::endl; \ 49 ::std::exit(EXIT_FAILURE); \ 53 # define assert(condition) do { } while (false) 70 # define ASSERT(condition, message) \ 73 ::std::cerr << "Assertion `" #condition "` failed in " << __FILE__ \ 74 << " line " << __LINE__ << ": " << message << ::std::endl; \ 75 ::std::exit(EXIT_FAILURE); \ 79 # define ASSERT(condition, message) do { } while (false) 83 #endif // _BASIS_ASSERT_H