diff options
| author | Yukihiro Matsumoto <[email protected]> | 2012-06-04 01:46:04 +0900 |
|---|---|---|
| committer | Yukihiro Matsumoto <[email protected]> | 2012-06-04 01:46:04 +0900 |
| commit | f24a52b04a70b8d69c51ba11b722352f61b8da9b (patch) | |
| tree | 01eabdd9290fee4e53dabc164dfc0812b1a63083 /src/parse.y | |
| parent | d8f1e17ef6282b15c945f1feb5b75c36be96f20e (diff) | |
| download | mruby-f24a52b04a70b8d69c51ba11b722352f61b8da9b.tar.gz mruby-f24a52b04a70b8d69c51ba11b722352f61b8da9b.zip | |
remove mrb_open NULL check for small test programs. They are only for proof-on-concept test, not production code. Adding precise checks are not needed for those code
Diffstat (limited to 'src/parse.y')
| -rw-r--r-- | src/parse.y | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/parse.y b/src/parse.y index 884290961..eae9fb373 100644 --- a/src/parse.y +++ b/src/parse.y @@ -5518,11 +5518,6 @@ main() mrb_state *mrb = mrb_open(); int n; - if (mrb == NULL) { - fprintf(stderr, "Invalid mrb_state, exiting parser test"); - return EXIT_FAILURE; - } - n = mrb_compile_string(mrb, "\ def fib(n)\n\ if n<2\n\ |
