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 Make global ruby namespace usage explicit 2021-02-14 22:12:32 +09:00
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 Replace "iff" with "if and only if" 2021-01-19 12:06:45 -08:00
atomic.h Removed a typo in a comment [ci skip] 2021-03-07 10:21:03 +09:00
backward.h Fixed missing NORETURN on rb_mod_const_missing 2020-12-31 12:30:13 +09:00
debug.h
defines.h
encoding.h
intern.h
io.h
memory_view.h [memory_view] Fix a comment 2020-12-25 20:11:01 +09:00
missing.h
onigmo.h
oniguruma.h
ractor.h expose some C-APIs for ractor 2021-01-06 16:03:09 +09:00
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 win32: Declared wait and fixed the return type 2020-12-27 16:49:27 +09:00