summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-08-29 15:09:14 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-08-29 15:09:14 +0900
commit3c4cd5428a1cfc43516f57506c1faf775c2a4abc (patch)
treeb16e23cb072e8b9cd541c0178cbb4d02a304c8d5 /include
parent56384139a842f5ffd0ed9609d81fde53050549da (diff)
downloadmruby-3c4cd5428a1cfc43516f57506c1faf775c2a4abc.tar.gz
mruby-3c4cd5428a1cfc43516f57506c1faf775c2a4abc.zip
allow no_optimize esp. for debugger
Diffstat (limited to 'include')
-rw-r--r--include/mruby/compile.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/mruby/compile.h b/include/mruby/compile.h
index 5efdef213..a85939998 100644
--- a/include/mruby/compile.h
+++ b/include/mruby/compile.h
@@ -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];