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
Koichi Sasada 21991e6ca5 Use RUBY_DEBUG instead of NDEBUG
Assertions in header files slows down an interpreter, so they should be
turned off by default (simple `make`). To enable them, define a macro
`RUBY_DEBUG=1` (e.g. `make cppflags=-DRUBY_DEBUG` or use `#define` at
the very beggining of the file. Note that even if `NDEBUG=1` is defined,
`RUBY_DEBUG=1` enables all assertions.
[Feature #16837]
related: https://github.com/ruby/ruby/pull/3120

`assert()` lines in MRI *.c is not disabled even if `RUBY_DEBUG=0` and
it can be disabled with `NDEBUG=1`. So please consider to use
`RUBY_ASSERT()` if you want to disable them when `RUBY_DEBUG=0`.
2020-05-26 03:21:14 +09:00
..
backward sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
internal Use RUBY_DEBUG instead of NDEBUG 2020-05-26 03:21:14 +09:00
assert.h Use RUBY_DEBUG instead of NDEBUG 2020-05-26 03:21:14 +09:00
backward.h sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
debug.h sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
defines.h sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
encoding.h sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
intern.h drop varargs.h support 2020-05-11 14:56:51 +09:00
io.h sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
missing.h sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
onigmo.h Reduce ONIG_NREGION from 10 to 4: power of 2 and testing revealed most pattern matches are less than or equal to 4 results 2019-05-07 21:58:55 +09:00
oniguruma.h
re.h sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
regex.h add #include guard hack 2020-04-13 16:06:00 +09:00
ruby.h sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
st.h Fix typos (#2958) 2020-03-11 00:43:12 -07:00
subst.h add #include guard hack 2020-04-13 16:06:00 +09:00
thread.h sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
thread_native.h add #include guard hack 2020-04-13 16:06:00 +09:00
util.h sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
version.h sed -i s/RUBY3/RBIMPL/g 2020-05-11 09:24:08 +09:00
vm.h sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
win32.h Fix errno at seeking socket/pipe on Windows 2019-07-25 06:39:40 +09:00