MySQL 9.1.0
Source Code Documentation
|
#include <stdlib.h>
Go to the source code of this file.
Macros | |
#define | harness_assert(COND) if (!(COND)) abort() |
Improved assert() More... | |
Functions | |
void | harness_assert_this_should_not_execute () |
assert(0) idiom with an explicit name More... | |
#define harness_assert | ( | COND | ) | if (!(COND)) abort() |
Improved assert()
This macro is meant to provide analogous functionality to the well-known assert() macro. In contrast to the original, it should also work in release builds.
|
inline |
assert(0) idiom with an explicit name
This is essentially the assert(0) idiom, but with more explicit name to clarify the intent.