mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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. |
||
|---|---|---|
| .. | ||
| rarray.h | ||
| rbasic.h | ||
| rbignum.h | ||
| rclass.h | ||
| rdata.h | ||
| rfile.h | ||
| rhash.h | ||
| rmatch.h | ||
| robject.h | ||
| rregexp.h | ||
| rstring.h | ||
| rstruct.h | ||
| rtypeddata.h | ||