Go to the source code of this file.
|
#define | RUBY_ASSERT_FAIL(expr) rb_assert_failure(__FILE__, __LINE__, NULL, expr) |
|
#define | RUBY_ASSERT_MESG(expr, mesg) ((expr) ? (void)0 : RUBY_ASSERT_FAIL(mesg)) |
|
#define | RUBY_ASSERT_MESG_WHEN(cond, expr, mesg) RUBY_ASSERT_MESG(!(cond) || (expr), mesg) |
|
#define | RUBY_ASSERT(expr) RUBY_ASSERT_MESG_WHEN(!RUBY_NDEBUG+0, expr, #expr) |
|
#define | RUBY_ASSERT_WHEN(cond, expr) RUBY_ASSERT_MESG_WHEN(cond, expr, #expr) |
|
#define | assert RUBY_ASSERT |
|
#define | RUBY_NDEBUG 0 |
|
◆ assert
Definition at line 37 of file ruby_assert.h.
Referenced by Init_Complex(), Init_date_core(), Init_Rational(), Init_String(), ossl_bin2hex(), rb_ary_sort_bang(), rb_rational_uminus(), rb_str_tmp_frozen_release(), SHA256_End(), SHA256_Final(), SHA256_Update(), SHA384_End(), SHA384_Final(), SHA512_End(), SHA512_Final(), and SHA512_Update().
◆ RUBY_ASSERT
◆ RUBY_ASSERT_FAIL
◆ RUBY_ASSERT_MESG
#define RUBY_ASSERT_MESG |
( |
|
expr, |
|
|
|
mesg |
|
) |
| ((expr) ? (void)0 : RUBY_ASSERT_FAIL(mesg)) |
◆ RUBY_ASSERT_MESG_WHEN
◆ RUBY_ASSERT_WHEN
◆ RUBY_NDEBUG
◆ NORETURN()
NORETURN |
( |
void |
rb_assert_failureconst char *, int, const char *, const char * | ) |
|