15 #include "CeeCore/Base.h"
36 static PostFailAction handleFailedAssert(
const char* fileName,
int lineNumber,
const char* expr,
const char* msg);
46 #ifndef CEE_ENABLE_APP_ASSERTS
47 #define CEE_ENABLE_APP_ASSERTS 1
50 #ifndef CEE_ENABLE_TIGHT_APP_ASSERTS
52 #define CEE_ENABLE_TIGHT_APP_ASSERTS 1
54 #define CEE_ENABLE_TIGHT_APP_ASSERTS 0
61 #define CEE_APP_ASSERT_DEBUGTRAP() __debugbreak()
63 #define CEE_APP_ASSERT_DEBUGTRAP() ((void)0)
69 #if CEE_ENABLE_APP_ASSERTS == 1
70 #define CEE_APP_ASSERT(expr) (void)( (!!(expr)) || (cee::AssertHelper::CONTINUE == cee::AssertHelper::handleFailedAssert(__FILE__, __LINE__, #expr, NULL)) || (CEE_APP_ASSERT_DEBUGTRAP(), 0) )
71 #define CEE_APP_ASSERT_MSG(expr, msg) (void)( (!!(expr)) || (cee::AssertHelper::CONTINUE == cee::AssertHelper::handleFailedAssert(__FILE__, __LINE__, #expr, (msg))) || (CEE_APP_ASSERT_DEBUGTRAP(), 0) )
72 #define CEE_APP_FAIL_MSG(msg) (void)( (cee::AssertHelper::CONTINUE == cee::AssertHelper::handleFailedAssert(__FILE__, __LINE__, NULL, (msg))) || (CEE_APP_ASSERT_DEBUGTRAP(), 0) )
74 #define CEE_APP_ASSERT(expr) ((void)0)
75 #define CEE_APP_ASSERT_MSG(expr, msg) ((void)0)
76 #define CEE_APP_FAIL_MSG(msg) ((void)0)
79 #if CEE_ENABLE_TIGHT_APP_ASSERTS == 1 && CEE_ENABLE_APP_ASSERTS == 1
80 #define CEE_APP_TIGHT_ASSERT(expr) CEE_APP_ASSERT(expr)
82 #define CEE_APP_TIGHT_ASSERT(expr) ((void)0)
Namespace cee contains all functionality and structures under the Core component. ...
Definition: AppAssert.cpp:18
Static helper class for handling application assert failures in CDC.
Definition: AppAssert.h:25
PostFailAction
Post fail actions.
Definition: AppAssert.h:29
Continue execution.
Definition: AppAssert.h:31