diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-09 05:18:03 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-09 05:18:03 +0000 |
commit | 6cdc89332e183d16061c0216ed158cb11a0629c6 (patch) | |
tree | 903a63fe7c0eb6d52571e0fe3542ff243085f9d8 /include/ruby | |
parent | 9fb521515d8ba0fb22c75e82573afdb419d22876 (diff) | |
download | ruby-6cdc89332e183d16061c0216ed158cb11a0629c6.tar.gz |
* vm_core.h (struct rb_vm_struct): moved ruby_debug, ruby_verbose, and
rb_progname.
* ruby.c (rb_argv0): no longer used.
* vm.c: getters/setters for ruby_{debug,verbose}.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@17039 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby')
-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); |