Go to the source code of this file.
◆ ASSERT
#define ASSERT |
( |
|
condition | ) |
|
Value: do { \
} while (false && (condition))
Definition at line 305 of file assert.h.
◆ ASSERT_EQUAL
#define ASSERT_EQUAL |
( |
|
expected, |
|
|
|
actual |
|
) |
| |
Value: do { \
} while (false && ((expected) != (actual)))
Definition at line 309 of file assert.h.
◆ ASSERT_IMPLIES
#define ASSERT_IMPLIES |
( |
|
antecedent, |
|
|
|
consequent |
|
) |
| |
Value: do { \
} while (false && (!(antecedent) || (consequent)))
Definition at line 317 of file assert.h.
◆ ASSERT_LESS_OR_EQUAL
#define ASSERT_LESS_OR_EQUAL |
( |
|
expected, |
|
|
|
actual |
|
) |
| |
Value: do { \
} while (false && ((actual) > (expected)))
Definition at line 313 of file assert.h.
◆ ASSERT_NOTNULL
#define ASSERT_NOTNULL |
( |
|
ptr | ) |
(ptr) |
◆ COMPILE_ASSERT
#define COMPILE_ASSERT |
( |
|
expr | ) |
static_assert(expr, "") |
◆ DEBUG_ASSERT
#define DEBUG_ASSERT |
( |
|
cond | ) |
|
◆ FATAL
◆ OUT_OF_MEMORY
#define OUT_OF_MEMORY |
( |
| ) |
FATAL("Out of memory.") |
◆ RELEASE_ASSERT
#define RELEASE_ASSERT |
( |
|
cond | ) |
|
Value: do { \
} while (false)
DART_NORETURN void Fail(const char *format,...) const PRINTF_ATTRIBUTE(2
Definition at line 327 of file assert.h.
◆ RELEASE_ASSERT_WITH_MSG
#define RELEASE_ASSERT_WITH_MSG |
( |
|
cond, |
|
|
|
msg |
|
) |
| |
Value: do { \
if (!(cond)) { \
dart::Assert(__FILE__, __LINE__).Fail("%s: expected: %s", msg, #cond); \
} \
} while (false)
Definition at line 332 of file assert.h.
◆ UNIMPLEMENTED
#define UNIMPLEMENTED |
( |
| ) |
FATAL("unimplemented code") |
◆ UNREACHABLE
#define UNREACHABLE |
( |
| ) |
FATAL("unreachable code") |