mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
remove reference to ruby_verbose and ruby_debug
This commit is contained in:
@@ -46,8 +46,6 @@ typedef void* (*mrb_allocf) (struct mrb_state *mrb, void*, size_t, void *ud);
|
||||
#ifndef MRB_ARENA_SIZE
|
||||
#define MRB_ARENA_SIZE 1024
|
||||
#endif
|
||||
#define ruby_debug (mrb_nil_value())
|
||||
#define ruby_verbose (mrb_nil_value())
|
||||
|
||||
typedef struct {
|
||||
mrb_sym mid;
|
||||
|
||||
@@ -1048,6 +1048,7 @@ retry:
|
||||
}
|
||||
|
||||
sprint_exit:
|
||||
#if 0
|
||||
/* XXX - We cannot validate the number of arguments if (digit)$ style used.
|
||||
*/
|
||||
if (posarg >= 0 && nextarg < argc) {
|
||||
@@ -1055,6 +1056,7 @@ retry:
|
||||
if (mrb_test(ruby_debug)) mrb_raise(mrb, E_ARGUMENT_ERROR, mesg);
|
||||
if (mrb_test(ruby_verbose)) mrb_warn("%s", mesg);
|
||||
}
|
||||
#endif
|
||||
mrb_str_resize(mrb, result, blen);
|
||||
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user