summaryrefslogtreecommitdiff
path: root/vm_method.c
diff options
context:
space:
mode:
authorshyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-22 13:27:26 +0000
committershyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-07-22 13:27:26 +0000
commit506a9821ce44db2b02bf3da99bef8b2e55f46562 (patch)
tree0616bde20da78986dc91bcbc8b4150998f9e8e55 /vm_method.c
parent9d43aefe922a432a5f0accfa3599976ee9de7734 (diff)
* method.h : Commas at end of enum list not allowed as of C89
* vm_method.c (rb_add_method): avoid C++ comment * vm_insnhelper.c (vm_call_cfunc): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@24242 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_method.c')
-rw-r--r--vm_method.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/vm_method.c b/vm_method.c
index 9ebeeb4a4b..407b5b7254 100644
--- a/vm_method.c
+++ b/vm_method.c
@@ -203,8 +203,9 @@ rb_add_method(VALUE klass, ID mid, rb_method_type_t type, void *opts, rb_method_
old_me->type != VM_METHOD_TYPE_UNDEF) {
rb_warning("method redefined; discarding old %s", rb_id2name(mid));
}
-
+#if defined(__cplusplus) || (__STDC_VERSION__ >= 199901L)
// TODO: free old_me
+#endif
}
/* check mid */