xref: /aosp_15_r20/external/ot-br-posix/third_party/Simple-web-server/repo/tests/assert.hpp (revision 4a64e381480ef79f0532b2421e44e6ee336b8e0d)
1 #ifndef SIMPLE_WEB_ASSERT_HPP
2 #define SIMPLE_WEB_ASSERT_HPP
3 
4 #include <cstdlib>
5 #include <iostream>
6 
7 #define ASSERT(e) ((void)((e) ? ((void)0) : ((void)(std::cerr << "Assertion failed: (" << #e << "), function " << __func__ << ", file " << __FILE__ << ", line " << __LINE__ << ".\n"), std::abort())))
8 
9 #endif /* SIMPLE_WEB_ASSERT_HPP */
10