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 /vm.c | |
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 'vm.c')
-rw-r--r-- | vm.c | 23 |
1 files changed, 23 insertions, 0 deletions
@@ -1777,3 +1777,26 @@ Init_top_self(void) vm->top_self = rb_obj_alloc(rb_cObject); rb_define_singleton_method(rb_vm_top_self(), "to_s", main_to_s, 0); } + +VALUE * +ruby_vm_verbose_ptr(rb_vm_t *vm) +{ + return &vm->verbose; +} + +VALUE * +ruby_vm_debug_ptr(rb_vm_t *vm) +{ + return &vm->debug; +} + +VALUE * +rb_ruby_verbose_ptr(void) +{ + return ruby_vm_verbose_ptr(GET_VM()); +} + +VALUE *rb_ruby_debug_ptr(void) +{ + return ruby_vm_debug_ptr(GET_VM()); +} |