allow no_optimize esp. for debugger

This commit is contained in:
Yukihiro "Matz" Matsumoto
2014-08-29 15:09:14 +09:00
parent 56384139a8
commit 3c4cd5428a
3 changed files with 12 additions and 1 deletions
+2
View File
@@ -29,6 +29,7 @@ typedef struct mrbc_context {
mrb_bool dump_result:1;
mrb_bool no_exec:1;
mrb_bool keep_lv:1;
mrb_bool no_optimize:1;
} mrbc_context;
mrbc_context* mrbc_context_new(mrb_state *mrb);
@@ -143,6 +144,7 @@ struct mrb_parser_state {
size_t nwarn;
mrb_ast_node *tree;
mrb_bool no_optimize:1;
mrb_bool capture_errors:1;
struct mrb_parser_message error_buffer[10];
struct mrb_parser_message warn_buffer[10];