diff options
author | Koichi Sasada <ko1@atdot.net> | 2019-07-15 12:05:55 +0900 |
---|---|---|
committer | Koichi Sasada <ko1@atdot.net> | 2019-07-15 12:06:25 +0900 |
commit | 8ac1c6eb4837f5d088b7fc0a6ee51a5723f728a9 (patch) | |
tree | d4e2056509b28d729e2e91ca896aa2c9d29ce55b /encoding.c | |
parent | 76bad330aae4ee867585dda3e547e5db740fc0f3 (diff) |
respect RUBY_DEBUG too
Diffstat (limited to 'encoding.c')
-rw-r--r-- | encoding.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/encoding.c b/encoding.c index ff5e488930..012d18c690 100644 --- a/encoding.c +++ b/encoding.c @@ -20,7 +20,7 @@ #ifndef ENC_DEBUG #define ENC_DEBUG 0 #endif -#define ENC_ASSERT (!ENC_DEBUG)?(void)0:assert +#define ENC_ASSERT(expr) RUBY_ASSERT_WHEN(ENC_DEBUG, expr) #define MUST_STRING(str) (ENC_ASSERT(RB_TYPE_P(str, T_STRING)), str) #undef rb_ascii8bit_encindex |