mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
capture_errors can be specified by mrbc_context
This commit is contained in:
@@ -22,6 +22,7 @@ typedef struct mrbc_context {
|
||||
int slen;
|
||||
char *filename;
|
||||
int lineno;
|
||||
int capture_errors:1;
|
||||
} mrbc_context;
|
||||
|
||||
mrbc_context* mrbc_context_new(mrb_state *mrb);
|
||||
|
||||
@@ -4683,6 +4683,7 @@ parser_init_cxt(parser_state *p, mrbc_context *cxt)
|
||||
local_add_f(p, cxt->syms[len]);
|
||||
}
|
||||
}
|
||||
p->capture_errors = cxt->capture_errors;
|
||||
}
|
||||
|
||||
static void
|
||||
|
||||
Reference in New Issue
Block a user