1
0
Fork 0
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:
卜部昌平 2020-08-07 14:01:13 +09:00 committed by GitHub
parent 8a99f820ce
commit 504e632a15
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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

View file

@ -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