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:
parent
76bad330aa
commit
8ac1c6eb48
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue