diff options
author | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-22 13:27:26 +0000 |
---|---|---|
committer | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-07-22 13:27:26 +0000 |
commit | 506a9821ce44db2b02bf3da99bef8b2e55f46562 (patch) | |
tree | 0616bde20da78986dc91bcbc8b4150998f9e8e55 /vm_insnhelper.c | |
parent | 9d43aefe922a432a5f0accfa3599976ee9de7734 (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_insnhelper.c')
-rw-r--r-- | vm_insnhelper.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c index 0163db9620..1eebf05212 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(); } |