Commit 137570ac authored by Yukihiro Matsumoto's avatar Yukihiro Matsumoto

capture_errors can be specified by mrbc_context

parent a7b8a94e
...@@ -22,6 +22,7 @@ typedef struct mrbc_context { ...@@ -22,6 +22,7 @@ typedef struct mrbc_context {
int slen; int slen;
char *filename; char *filename;
int lineno; int lineno;
int capture_errors:1;
} mrbc_context; } mrbc_context;
mrbc_context* mrbc_context_new(mrb_state *mrb); mrbc_context* mrbc_context_new(mrb_state *mrb);
......
...@@ -4683,6 +4683,7 @@ parser_init_cxt(parser_state *p, mrbc_context *cxt) ...@@ -4683,6 +4683,7 @@ parser_init_cxt(parser_state *p, mrbc_context *cxt)
local_add_f(p, cxt->syms[len]); local_add_f(p, cxt->syms[len]);
} }
} }
p->capture_errors = cxt->capture_errors;
} }
static void static void
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment