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.
306 { \
307 } while (false && (condition))
◆ ASSERT_EQUAL
#define ASSERT_EQUAL |
( |
|
expected, |
|
|
|
actual |
|
) |
| |
Value: do { \
} while (false && ((expected) != (actual)))
Definition at line 309 of file assert.h.
310 { \
311 } while (false && ((expected) != (actual)))
◆ ASSERT_IMPLIES
#define ASSERT_IMPLIES |
( |
|
antecedent, |
|
|
|
consequent |
|
) |
| |
Value: do { \
} while (false && (!(antecedent) || (consequent)))
Definition at line 317 of file assert.h.
318 { \
319 } while (false && (!(antecedent) || (consequent)))
◆ 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.
314 { \
315 } while (false && ((actual) > (expected)))
◆ 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.
328 { \
329 if (!(cond))
dart::Assert(__FILE__, __LINE__).
Fail(
"expected: %s", #cond); \
330 } while (false)
◆ 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.
333 { \
334 if (!(cond)) { \
335 dart::Assert(__FILE__, __LINE__).Fail("%s: expected: %s", msg, #cond); \
336 } \
337 } while (false)
◆ UNIMPLEMENTED
#define UNIMPLEMENTED |
( |
| ) |
FATAL("unimplemented code") |
◆ UNREACHABLE
#define UNREACHABLE |
( |
| ) |
FATAL("unreachable code") |