diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-03-27 23:51:18 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-03-27 23:51:18 +0000 |
commit | 1c59cc2ccecb81512a2789ece0691ada6172beed (patch) | |
tree | 34d5340b92abc68b0d7dc53af50f947b030ef61d /internal.h | |
parent | 55152ae26d200be3bd59170e9750949058fa82a2 (diff) | |
download | ruby-1c59cc2ccecb81512a2789ece0691ada6172beed.tar.gz |
vm_eval.c: simplify rb_iterate
* internal.h (IFUNC_NEW): add argument for ID.
* vm_eval.c (rb_iterate): create ifunnc only when it is used.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50102 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'internal.h')
-rw-r--r-- | internal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/internal.h b/internal.h index 76435c16b0..e29fcb2e08 100644 --- a/internal.h +++ b/internal.h @@ -585,7 +585,7 @@ struct vm_ifunc { ID id; }; -#define IFUNC_NEW(a, b) ((struct vm_ifunc *)rb_imemo_new(imemo_ifunc, (VALUE)(a), (VALUE)(b), 0, 0)) +#define IFUNC_NEW(a, b, c) ((struct vm_ifunc *)rb_imemo_new(imemo_ifunc, (VALUE)(a), (VALUE)(b), (VALUE)(c), 0)) /* MEMO */ |