summaryrefslogtreecommitdiff
path: root/vm_method.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm_method.c')
-rw-r--r--vm_method.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/vm_method.c b/vm_method.c
index 19a8a3ebbb..815de8773d 100644
--- a/vm_method.c
+++ b/vm_method.c
@@ -301,8 +301,8 @@ rb_method_node(VALUE klass, ID id)
return rb_get_method_body(klass, id, 0);
}
-static void
-remove_method(VALUE klass, ID mid)
+void
+rb_remove_method_id(VALUE klass, ID mid)
{
st_data_t data;
NODE *body = 0;
@@ -344,6 +344,8 @@ remove_method(VALUE klass, ID mid)
}
}
+#define remove_method(klass, mid) rb_remove_method_id(klass, mid)
+
void
rb_remove_method(VALUE klass, const char *name)
{