diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/ruby/mvm.h | 3 | ||||
-rw-r--r-- | include/ruby/ruby.h | 5 |
2 files changed, 7 insertions, 1 deletions
diff --git a/include/ruby/mvm.h b/include/ruby/mvm.h index 6b6a2f5232..24b8cb3fb4 100644 --- a/include/ruby/mvm.h +++ b/include/ruby/mvm.h @@ -15,4 +15,7 @@ typedef struct rb_vm_struct rb_vm_t; typedef struct rb_thread_struct rb_thread_t; +VALUE *ruby_vm_verbose_ptr(rb_vm_t *); +VALUE *ruby_vm_debug_ptr(rb_vm_t *); + #endif /* RUBY_MVM_H */ diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h index db6f98023a..614a6145b3 100644 --- a/include/ruby/ruby.h +++ b/include/ruby/ruby.h @@ -799,7 +799,10 @@ VALUE rb_iv_set(VALUE, const char*, VALUE); VALUE rb_equal(VALUE,VALUE); -RUBY_EXTERN VALUE ruby_verbose, ruby_debug; +VALUE *rb_ruby_verbose_ptr(void); +VALUE *rb_ruby_debug_ptr(void); +#define ruby_verbose (*rb_ruby_verbose_ptr()) +#define ruby_debug (*rb_ruby_debug_ptr()) PRINTF_ARGS(NORETURN(void rb_raise(VALUE, const char*, ...)), 2, 3); PRINTF_ARGS(NORETURN(void rb_fatal(const char*, ...)), 1, 2); |