summaryrefslogtreecommitdiffstats
path: root/vm_insnhelper.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
commit999be5f5fd879b582955689487598ea3f825e229 (patch)
tree0616bde20da78986dc91bcbc8b4150998f9e8e55 /vm_insnhelper.c
parent29db76b3a8c4764d737a181bf5c7f56ae9541bd9 (diff)
downloadruby-999be5f5fd879b582955689487598ea3f825e229.tar.gz
ruby-999be5f5fd879b582955689487598ea3f825e229.tar.xz
ruby-999be5f5fd879b582955689487598ea3f825e229.zip
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@24242 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r--vm_insnhelper.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c
index 0163db962..1eebf0521 100644
--- a/vm_insnhelper.c
+++ b/vm_insnhelper.c
@@ -367,7 +367,9 @@ vm_call_cfunc(rb_thread_t *th, rb_control_frame_t *reg_cfp,
EXEC_EVENT_HOOK(th, RUBY_EVENT_C_CALL, recv, id, klass);
TH_PUSH_TAG(th);
+#if defined(__cplusplus) || (__STDC_VERSION__ >= 199901L)
// TODO: fix me. separate event
+#endif
if (th->event_flags & RUBY_EVENT_C_RETURN) {
state = TH_EXEC_TAG();
}