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
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
..
arithmetic Use RUBY_DEBUG instead of NDEBUG 2020-05-26 03:21:14 +09:00
attr Use RUBY_DEBUG instead of NDEBUG 2020-05-26 03:21:14 +09:00
compiler_is
core Use RUBY_DEBUG instead of NDEBUG 2020-05-26 03:21:14 +09:00
has
intern Thread scheduler for light weight concurrency. 2020-05-14 22:10:55 +12:00
anyargs.h
arithmetic.h
assume.h
cast.h
compiler_is.h
compiler_since.h
config.h
constant_p.h
core.h
ctype.h
dllexport.h
dosish.h
error.h
eval.h
event.h
fl_type.h Use RUBY_DEBUG instead of NDEBUG 2020-05-26 03:21:14 +09:00
gc.h
glob.h
globals.h Use RUBY_DEBUG instead of NDEBUG 2020-05-26 03:21:14 +09:00
interpreter.h
iterator.h
memory.h
method.h
module.h
newobj.h
rgengc.h Use RUBY_DEBUG instead of NDEBUG 2020-05-26 03:21:14 +09:00
scan_args.h Added UNREACHABLE_RETURN 2020-05-21 13:31:36 +09:00
special_consts.h
static_assert.h
stdalign.h
stdbool.h
symbol.h
token_paste.h
value.h
value_type.h Use RUBY_DEBUG instead of NDEBUG 2020-05-26 03:21:14 +09:00
variable.h
warning_push.h
xmalloc.h