diff options
author | 卜部昌平 <shyouhei@ruby-lang.org> | 2020-08-07 14:01:13 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-07 14:01:13 +0900 |
commit | 504e632a15a7886ff693a0162e998aed35d7b2ac (patch) | |
tree | 0808b1bd746f1615e7635582ca7915fd26d1036f /include/ruby/internal/attr/const.h | |
parent | 8a99f820ce208b6d9ddb9d679108b174977514c3 (diff) |
sync NDEBUG, RUBY_DEBUG, and RUBY_NDEBUG (#3327)
- When NDEBUG is defined that shall be honoured.
- When RUBY_DEBUG is defined that shall be honoured.
- When both are defined and they conflict, warnings shall be rendered.
- When nothing is specified, nothing shall happen.
Notes
Notes:
Merged-By: shyouhei <shyouhei@ruby-lang.org>
Diffstat (limited to 'include/ruby/internal/attr/const.h')
-rw-r--r-- | include/ruby/internal/attr/const.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ruby/internal/attr/const.h b/include/ruby/internal/attr/const.h index f3068f9f5e..d5b8da0c2d 100644 --- a/include/ruby/internal/attr/const.h +++ b/include/ruby/internal/attr/const.h @@ -36,7 +36,7 @@ # define RBIMPL_ATTR_CONST() /* void */ #endif -/** Enables #RBIMPL_ATTR_CONST iff. !RUBY_DEBUG. */ +/** Enables #RBIMPL_ATTR_CONST iff. ! #RUBY_DEBUG. */ #if !RUBY_DEBUG # define RBIMPL_ATTR_CONST_UNLESS_DEBUG() RBIMPL_ATTR_CONST() #else |