mirror of
https://github.com/ruby/ruby.git
synced 2026-01-26 20:19:19 +00:00
[ruby/mmtk] Add MMTK_ASSERT
https://github.com/ruby/mmtk/commit/e34d5cf32f
This commit is contained in:
parent
b3216bc1e1
commit
aa7eb97d06
@ -83,6 +83,12 @@ RB_THREAD_LOCAL_SPECIFIER VALUE marking_parent_object;
|
||||
# error We currently need language-supported TLS
|
||||
#endif
|
||||
|
||||
#ifdef MMTK_DEBUG
|
||||
# define MMTK_ASSERT(expr, ...) RUBY_ASSERT_ALWAYS(expr, #expr RBIMPL_VA_OPT_ARGS(__VA_ARGS__))
|
||||
#else
|
||||
# define MMTK_ASSERT(expr, ...) ((void)0)
|
||||
#endif
|
||||
|
||||
#include <pthread.h>
|
||||
|
||||
static void
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user