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 | |
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')
-rw-r--r-- | include/ruby/internal/attr/const.h | 2 | ||||
-rw-r--r-- | include/ruby/internal/attr/constexpr.h | 2 | ||||
-rw-r--r-- | include/ruby/internal/attr/pure.h | 2 |
3 files changed, 3 insertions, 3 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 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 diff --git a/include/ruby/internal/attr/pure.h b/include/ruby/internal/attr/pure.h index b27adaa840..1a10540ef3 100644 --- a/include/ruby/internal/attr/pure.h +++ b/include/ruby/internal/attr/pure.h @@ -33,7 +33,7 @@ # define RBIMPL_ATTR_PURE() /* void */ #endif -/** Enables #RBIMPL_ATTR_PURE iff. !RUBY_DEBUG. */ +/** Enables #RBIMPL_ATTR_PURE iff. ! #RUBY_DEBUG. */ #if !RUBY_DEBUG # define RBIMPL_ATTR_PURE_UNLESS_DEBUG() RBIMPL_ATTR_PURE() #else |