1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

respect RUBY_DEBUG too

This commit is contained in:
Koichi Sasada 2019-07-15 12:05:55 +09:00
parent 76bad330aa
commit 8ac1c6eb48

View file

@ -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