MochiEngine
Loading...
Searching...
No Matches
Assertion macros
Macros
#define
ASSERT
(message, x)
Asserts and show a message if the predicate is false.
Detailed Description
Utils/Assert.h
Macro Definition Documentation
◆
ASSERT
#define ASSERT
(
message
,
x
)
Value:
if
(!(x)) \
{ \
std::cout <<
"!!!!!ASSERTION FAILED!!!!!"
<< std::endl \
<<
"\""
<< message <<
"\""
<< std::endl \
<< #x << std::endl \
<<
"File: "
<< __FILE__ << std::endl \
<<
"Line: "
<< __LINE__ << std::endl; \
exit(-1); \
}
Asserts and show a message if the predicate is false.
Generated by
1.16.1