aboutsummaryrefslogtreecommitdiffstats
path: root/vm_insnhelper.h
diff options
context:
space:
mode:
Diffstat (limited to 'vm_insnhelper.h')
-rw-r--r--vm_insnhelper.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/vm_insnhelper.h b/vm_insnhelper.h
index bb4cef553b..d4dd5aec4d 100644
--- a/vm_insnhelper.h
+++ b/vm_insnhelper.h
@@ -189,4 +189,9 @@ extern VALUE ruby_vm_const_missing_count;
CALL_METHOD(num, 0, 0, id, rb_method_entry(klass, id), recv); \
} while (0)
+#define CALL_SIMPLE_METHOD_IC(num, id, recv, ic) do { \
+ VALUE klass = CLASS_OF(recv); \
+ CALL_METHOD(num, 0, 0, id, vm_method_search(id, klass, ic), recv); \
+} while (0)
+
#endif /* RUBY_INSNHELPER_H */