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

include/ruby/3/core/rtypeddata.h: Use 0 instead of NULL for C++ compiler

NULL in C++ is esoteric
This commit is contained in:
Yusuke Endoh 2020-04-09 12:50:15 +09:00
parent 97f73bd0e2
commit d2bb2e066b

View file

@ -160,8 +160,8 @@ RTYPEDDATA_TYPE(VALUE obj)
#if ! RUBY_NDEBUG
if (RB_UNLIKELY(! RTYPEDDATA_P(obj))) {
rb_unexpected_type(obj, RUBY_T_DATA);
# if ! defined(__sun) && ! RUBY3_COMPILER_IS(Intel)
RUBY3_UNREACHABLE_RETURN(NULL);
# if ! defined(__sun)
RUBY3_UNREACHABLE_RETURN(0);
# endif
}
#endif