capture_errors can be specified by mrbc_context

This commit is contained in:
Yukihiro Matsumoto
2012-07-03 21:32:37 +09:00
parent a7b8a94e48
commit 137570acf0
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -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);
+1
View File
@@ -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