summaryrefslogtreecommitdiff
path: root/vm_insnhelper.h
diff options
context:
space:
mode:
authorko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-03-10 19:57:30 +0000
committerko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-03-10 19:57:30 +0000
commitb8fa8865ee9e76b83cdd64d54d563ca3ef648831 (patch)
treea4fe224ecdea1a5389e1cb3bc162c72202e53173 /vm_insnhelper.h
parente512180a9815f528aec5def6904f94fc7737097e (diff)
* vm_insnhelper.h: define struct IFUNC.
* vm_eval.c (rb_iterate): use it. * vm_insnhelper.c (vm_yield_with_cfunc): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49925 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_insnhelper.h')
-rw-r--r--vm_insnhelper.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/vm_insnhelper.h b/vm_insnhelper.h
index 6060a26..ccf0c46 100644
--- a/vm_insnhelper.h
+++ b/vm_insnhelper.h
@@ -283,4 +283,12 @@ THROW_DATA_STATE(const struct THROW_DATA *obj)
return obj->throw_state;
}
+struct IFUNC {
+ VALUE flags;
+ VALUE reserved;
+ VALUE (*func)(ANYARGS);
+ void *data;
+ ID id;
+};
+
#endif /* RUBY_INSNHELPER_H */