mirror of
https://github.com/ruby/ruby.git
synced 2025-09-21 03:24:00 +02:00
* 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
This commit is contained in:
parent
9fb521515d
commit
6cdc89332e
6 changed files with 40 additions and 10 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue