mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Support message in GC_ASSERT
RUBY_ASSERT_MESG_WHEN supports a format string at the end for additional information. This commit adds support for that in GC_ASSERT.
This commit is contained in:
parent
b1c09faf67
commit
80f53eba40
1 changed files with 1 additions and 1 deletions
2
gc/gc.h
2
gc/gc.h
|
@ -130,7 +130,7 @@ RBIMPL_WARNING_IGNORED(-Wunused-function)
|
|||
#endif
|
||||
|
||||
#ifndef GC_ASSERT
|
||||
# define GC_ASSERT(expr) RUBY_ASSERT_MESG_WHEN(RGENGC_CHECK_MODE > 0, expr, #expr)
|
||||
# define GC_ASSERT(expr, ...) RUBY_ASSERT_MESG_WHEN(RGENGC_CHECK_MODE > 0, expr, #expr RBIMPL_VA_OPT_ARGS(__VA_ARGS__))
|
||||
#endif
|
||||
|
||||
static int
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue