SpiecsEngine
 
Loading...
Searching...
No Matches

◆ ASSERT

#define ASSERT ( expr)
Value:
{ \
if (expr) {} \
else \
{ \
std::stringstream ss; \
ss << "Assert Failed \n At File: " << __FILE__ << " \n At Line: " << __LINE__ << "\n "; \
SPICES_CORE_ERROR(ss.str()); \
} \
} \

Assert macro.

Todo
better Assert System.

Definition at line 29 of file Core.h.

29#define ASSERT(expr) \
30 { \
31 if (expr) {} \
32 else \
33 { \
34 std::stringstream ss; \
35 ss << "Assert Failed \n At File: " << __FILE__ << " \n At Line: " << __LINE__ << "\n "; \
36 SPICES_CORE_ERROR(ss.str()); \
37 } \
38 } \
39