1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/include/ruby/internal/core
卜部昌平 f8e1bf283d workaround MSVC error
Previous code failed to compile on MSVC. Log:
https://github.com/ruby/ruby/pull/4371/checks?check_run_id=2304484466

This is possibly due to the fact that:

1. `Data_Wrap_Struct(...)` appears in a source code
2. which expands to `rb_data_object_wrap(...)`
3. which expands to `RUBY_MACRO_SELECT(rb_data_object_wrap_, RUBY_UNTYPED_DATA_WARNING)`
4. which expands to `rb_data_object_wrap_0`
5. which expands to `rb_data_object_wrap`, so far so good, but
6. this is a recursive macro expansion (see step 2).  Everybody stops expanding...
    - in step 4 for MSVC, and
    - in step 5 for GCC etc.

I have no idea why but this proposed changeset prevents MSVC from
stopping at step 4.
2021-04-13 14:30:21 +09:00
..
rarray.h
rbasic.h Added parentheses to silence sizeof-array-div warnings [Bug #17385] 2020-12-12 14:25:30 +09:00
rbignum.h
rclass.h
rdata.h workaround MSVC error 2021-04-13 14:30:21 +09:00
rfile.h
rhash.h Fix typos in rhash.h (#4292) 2021-03-19 19:12:03 -07:00
rmatch.h
robject.h
rregexp.h
rstring.h
rstruct.h
rtypeddata.h