diff options
author | 卜部昌平 <[email protected]> | 2020-08-07 14:01:13 +0900 |
---|---|---|
committer | GitHub <[email protected]> | 2020-08-07 14:01:13 +0900 |
commit | 504e632a15a7886ff693a0162e998aed35d7b2ac (patch) | |
tree | 0808b1bd746f1615e7635582ca7915fd26d1036f /include/ruby/internal/attr/constexpr.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 <[email protected]>
Diffstat (limited to 'include/ruby/internal/attr/constexpr.h')
-rw-r--r-- | include/ruby/internal/attr/constexpr.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ruby/internal/attr/constexpr.h b/include/ruby/internal/attr/constexpr.h index 6d81d342a2..96b010ce6f 100644 --- a/include/ruby/internal/attr/constexpr.h +++ b/include/ruby/internal/attr/constexpr.h @@ -75,7 +75,7 @@ # define RBIMPL_ATTR_CONSTEXPR(_) /* void */ #endif -/** Enables #RBIMPL_ATTR_CONSTEXPR iff. !RUBY_DEBUG. */ +/** Enables #RBIMPL_ATTR_CONSTEXPR iff. ! #RUBY_DEBUG. */ #if !RUBY_DEBUG # define RBIMPL_ATTR_CONSTEXPR_UNLESS_DEBUG(_) RBIMPL_ATTR_CONSTEXPR(_) #else |