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
卜部昌平 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
..
backward
fiber Fix symbol export. 2021-04-10 09:10:08 +12:00
internal workaround MSVC error 2021-04-13 14:30:21 +09:00
assert.h
atomic.h Removed a typo in a comment [ci skip] 2021-03-07 10:21:03 +09:00
backward.h
debug.h
defines.h
encoding.h
intern.h
io.h
memory_view.h
missing.h
onigmo.h
oniguruma.h
ractor.h
random.h
re.h
regex.h
ruby.h Removed dln_a_out 2021-03-24 20:13:55 +09:00
st.h
subst.h
thread.h
thread_native.h
util.h
version.h
vm.h
win32.h