vm_empty_cc: refactor use macro
This commit is contained in:
parent
46728557c1
commit
88e6799759
Notes:
git
2020-06-09 09:53:17 +09:00
8
vm.c
8
vm.c
@ -386,13 +386,7 @@ rb_serial_t ruby_vm_global_method_state = 1;
|
||||
rb_serial_t ruby_vm_global_constant_state = 1;
|
||||
rb_serial_t ruby_vm_class_serial = 1;
|
||||
|
||||
static const struct rb_callcache vm_empty_cc = {
|
||||
.flags = (T_IMEMO | (imemo_callcache << FL_USHIFT) | VM_CALLCACHE_UNMARKABLE),
|
||||
.klass = Qfalse,
|
||||
.cme_ = NULL,
|
||||
.call_ = vm_call_general,
|
||||
.aux_.v = 0,
|
||||
};
|
||||
static const struct rb_callcache vm_empty_cc = VM_CC_ON_STACK(0, vm_call_general, { 0 }, 0);
|
||||
|
||||
static void thread_free(void *ptr);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user