1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Update include/ruby/assert.h

Co-authored-by: 卜部昌平 <shyouhei@ruby-lang.org>
This commit is contained in:
Koichi Sasada 2020-05-20 17:20:59 +09:00
parent 21991e6ca5
commit 4ac42874bc
Notes: git 2020-05-26 03:21:51 +09:00

View file

@ -32,7 +32,13 @@
#endif
#if RUBY_DEBUG > 0 && defined(NDEBUG)
#warning NDEBUG is ignored because RUBY_DEBUG>0.
#if defined(_MSC_VER)
# pragma message("NDEBUG is ignored because RUBY_DEBUG>0.")
#elif defined(__GNUC__)
# pragma GCC warning "NDEBUG is ignored because RUBY_DEBUG>0."
#else
# error NDEBUG is ignored because RUBY_DEBUG>0.
#endif
#endif
/*