Provides assert for debugging. More...
#include "prologue.h"
Go to the source code of this file.
Defines | |
#define | assert BUG__WE_GOT_OUR_VERSION_OF_ASSERT__PLEASE_CORRECT *** choke me *** |
#define | MY_ASSERT(exp) (void)((exp) || (report_assertion_failure(__FILE__,__my_func__,__LINE__,#exp), dump_core())) |
#define | MY_ASSERT_NOTREACH() |
#define | MY_ASSERT_TODO(str) |
Functions | |
int | dump_core () |
Forces to dump the core. | |
int | report_assertion_failure (const char *file, const char *func, int line, const char *exp) |
Reports assertion failure to logs, when core dump via NULL pointer dereference is not enabled. |
Provides assert for debugging.
Definition in file my_assert.h.