diff options
| author | Yukihiro Matsumoto <[email protected]> | 2012-07-03 21:32:37 +0900 |
|---|---|---|
| committer | Yukihiro Matsumoto <[email protected]> | 2012-07-03 21:32:37 +0900 |
| commit | 137570acf0f8f9dbfbdc8678d13650bfcfe9c140 (patch) | |
| tree | e5a250ef4c89217ecf2823f478a32edf6cf81834 | |
| parent | a7b8a94e48b805cd1651807aae09faf2d265b61b (diff) | |
| download | mruby-137570acf0f8f9dbfbdc8678d13650bfcfe9c140.tar.gz mruby-137570acf0f8f9dbfbdc8678d13650bfcfe9c140.zip | |
capture_errors can be specified by mrbc_context
| -rw-r--r-- | include/mruby/compile.h | 1 | ||||
| -rw-r--r-- | src/parse.y | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/include/mruby/compile.h b/include/mruby/compile.h index c4e480577..8f65932ba 100644 --- a/include/mruby/compile.h +++ b/include/mruby/compile.h @@ -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); diff --git a/src/parse.y b/src/parse.y index 5376182a0..217e82a37 100644 --- a/src/parse.y +++ b/src/parse.y @@ -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 |
