summaryrefslogtreecommitdiffhomepage
path: root/src/codegen.c
diff options
context:
space:
mode:
authorYukihiro Matsumoto <[email protected]>2012-06-04 01:46:04 +0900
committerYukihiro Matsumoto <[email protected]>2012-06-04 01:46:04 +0900
commitf24a52b04a70b8d69c51ba11b722352f61b8da9b (patch)
tree01eabdd9290fee4e53dabc164dfc0812b1a63083 /src/codegen.c
parentd8f1e17ef6282b15c945f1feb5b75c36be96f20e (diff)
downloadmruby-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/codegen.c')
-rw-r--r--src/codegen.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/codegen.c b/src/codegen.c
index 027b6777f..117588b6e 100644
--- a/src/codegen.c
+++ b/src/codegen.c
@@ -2292,11 +2292,6 @@ main()
mrb_state *mrb = mrb_open();
int n;
- if (mrb == NULL) {
- fprintf(stderr, "Invalid mrb_state, exiting codegen test");
- return EXIT_FAILURE;
- }
-
#if 1
n = mrb_compile_string(mrb, "p(__FILE__)\np(__LINE__)");
#else