summaryrefslogtreecommitdiff
path: root/vm.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm.c')
-rw-r--r--vm.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/vm.c b/vm.c
index 24b27a3bf9..4867e05444 100644
--- a/vm.c
+++ b/vm.c
@@ -603,7 +603,7 @@ search_super_klass(VALUE klass, VALUE recv)
return klass;
}
-VALUE
+static VALUE
th_call_super(rb_thread_t *th, int argc, const VALUE *argv)
{
VALUE recv = th->cfp->self;
@@ -642,6 +642,12 @@ th_call_super(rb_thread_t *th, int argc, const VALUE *argv)
return th_call0(th, klass, recv, id, id, argc, argv, body, nosuper);
}
+VALUE
+rb_call_super(int argc, const VALUE *argv)
+{
+ return th_call_super(GET_THREAD(), argc, argv);
+}
+
static inline VALUE
th_invoke_yield_cfunc(rb_thread_t *th, rb_block_t *block,
VALUE self, int argc, VALUE *argv)