diff options
author | 卜部昌平 <shyouhei@ruby-lang.org> | 2019-12-03 14:42:53 +0900 |
---|---|---|
committer | 卜部昌平 <shyouhei@ruby-lang.org> | 2019-12-26 20:45:12 +0900 |
commit | 989068cf7087bf48f30c7f7c3f9acfa0bfd263ef (patch) | |
tree | 8157b9b4a629b90f1d018b8ad12220e4d9a3be63 /proc.c | |
parent | 63c9f620cf87fb5fa08cdb7b0b4cc70e787f5cb2 (diff) |
internal/imemo.h rework
Arrange contents and eliminate macros, to make them readable.
Macro IFUNC_NEW was deleted because there was only one usage.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/2711
Diffstat (limited to 'proc.c')
-rw-r--r-- | proc.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -721,7 +721,8 @@ rb_vm_ifunc_new(rb_block_call_func_t func, const void *data, int min_argc, int m } arity.argc.min = min_argc; arity.argc.max = max_argc; - return IFUNC_NEW(func, data, arity.packed); + VALUE ret = rb_imemo_new(imemo_ifunc, (VALUE)func, (VALUE)data, arity.packed, 0); + return (struct vm_ifunc *)ret; } MJIT_FUNC_EXPORTED VALUE |