mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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.
This commit is contained in:
parent
8a99f820ce
commit
504e632a15
Notes:
git
2020-08-07 14:01:40 +09:00
Merged-By: shyouhei <shyouhei@ruby-lang.org>
4 changed files with 169 additions and 45 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue