summaryrefslogtreecommitdiff
path: root/vm_insnhelper.c
diff options
context:
space:
mode:
authorMaxime Chevalier-Boisvert <maximechevalierb@gmail.com>2021-05-11 16:06:07 -0400
committerAlan Wu <XrXr@users.noreply.github.com>2021-10-20 18:19:35 -0400
commit54fe43b45ce65f0e2cde4d4e950303893a721ebd (patch)
treedbf8ba3bdf936cba6d96737edb00f1152ded2b48 /vm_insnhelper.c
parent7ce6d1f0c2683b5d70b2c8055d893fd3052a266a (diff)
Implement defined bytecode (#39)
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r--vm_insnhelper.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c
index d41bfeb66c..c9c4744b23 100644
--- a/vm_insnhelper.c
+++ b/vm_insnhelper.c
@@ -4188,6 +4188,12 @@ vm_defined(rb_execution_context_t *ec, rb_control_frame_t *reg_cfp, rb_num_t op_
return false;
}
+bool
+rb_vm_defined(rb_execution_context_t *ec, rb_control_frame_t *reg_cfp, rb_num_t op_type, VALUE obj, VALUE v)
+{
+ return vm_defined(ec, reg_cfp, op_type, obj, v);
+}
+
static const VALUE *
vm_get_ep(const VALUE *const reg_ep, rb_num_t lv)
{