InnoDB Plugin
1.0
|
Go to the source code of this file.
Macros | |
#define | UT_DBG_FAIL(EXPR) !((ulint)(EXPR) + ut_dbg_zero) |
#define | UT_DBG_PANIC abort() |
#define | ut_a(EXPR) |
#define | ut_error |
#define | ut_ad(EXPR) ut_a(EXPR) |
#define | ut_d(EXPR) do {EXPR;} while (0) |
#define | UT_NOT_USED(A) A = A |
Functions | |
UNIV_INTERN void | ut_dbg_assertion_failed (const char *expr, const char *file, ulint line) UNIV_COLD)) |
Variables | |
ulint | ut_dbg_zero |
Debug utilities for Innobase
Created 1/30/1994 Heikki Tuuri
#define ut_a | ( | EXPR | ) |
Abort execution if EXPR does not evaluate to nonzero.
EXPR | assertion expression that should hold |
#define ut_ad | ( | EXPR | ) | ut_a(EXPR) |
Debug assertion. Does nothing unless UNIV_DEBUG is defined.
#define ut_d | ( | EXPR | ) | do {EXPR;} while (0) |
Debug statement. Does nothing unless UNIV_DEBUG is defined.
#define UT_DBG_FAIL | ( | EXPR | ) | !((ulint)(EXPR) + ut_dbg_zero) |
Test if an assertion fails.
EXPR | assertion expression |
#define UT_DBG_PANIC abort() |
Abort the execution.
#define ut_error |
Abort execution.
#define UT_NOT_USED | ( | A | ) | A = A |
Silence warnings about an unused variable by doing a null assignment.
A | the unused variable |
UNIV_INTERN void ut_dbg_assertion_failed | ( | const char * | expr, |
const char * | file, | ||
ulint | line | ||
) |
Report a failed assertion.
expr | in: the failed assertion |
file | in: source file containing the assertion |
line | in: line number of the assertion |
ulint ut_dbg_zero |
This is used to eliminate compiler warnings