#include <windows.h>
Go to the source code of this file.
#define CRASHRPT_ENABLE_RELEASE_ASSERTS 1 |
To redefine C assert macro behavior define macro CRASHRPT_ENABLE_RELEASE_ASSERTS as 1 and include CrashRpt.h in each translation unit as soon as possible (precompiled header is the best place for that).
#define CRASHRPT_ENABLE_RELEASE_ASSERTS 1
#include <CrashRpt.h>
When _DEBUG define is not defined (it is Release configuration) assert macro evaluates an expression and, when the result is false, sends report and continues execution. When _DEBUG define is defined (it is Debug configuration) assert macro works as standard assert macro from assert.h header.
- Note
- All assert calls before CrashRpt.h inclusion would work as standard asserts.
- See Also
- crash_rpt::CrashRpt::ExceptionAssertionViolated crash_rpt::CrashRpt::SkipDoctorDump_SendAssertionViolated