diff options
| author | Masaki Muranaka <[email protected]> | 2013-03-05 01:36:56 +0900 |
|---|---|---|
| committer | Masaki Muranaka <[email protected]> | 2013-03-05 01:38:51 +0900 |
| commit | 6ae3a1b83eab39240fa530490387672d3d4ff660 (patch) | |
| tree | 8474e4f766a136a126b97f6cd45a4ad9b80725b6 /src/error.c | |
| parent | 5a025813b583dc96176644f838dbc55194a67fb1 (diff) | |
| download | mruby-6ae3a1b83eab39240fa530490387672d3d4ff660.tar.gz mruby-6ae3a1b83eab39240fa530490387672d3d4ff660.zip | |
Modify API configuration.
C API mrb_p() is always callable.
- But it will do nothing when ENABLE_STDIO is not defined.
Kernel#__printstr__ is always callable.
- But it will do nothing when ENABLE_STDIO is not defined.
Diffstat (limited to 'src/error.c')
| -rw-r--r-- | src/error.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/error.c b/src/error.c index 54c6dff14..85f10e6d7 100644 --- a/src/error.c +++ b/src/error.c @@ -208,9 +208,7 @@ mrb_exc_raise(mrb_state *mrb, mrb_value exc) mrb->exc = (struct RObject*)mrb_object(exc); exc_debug_info(mrb, mrb->exc); if (!mrb->jmp) { -#ifdef ENABLE_STDIO mrb_p(mrb, exc); -#endif abort(); } longjmp(*(jmp_buf*)mrb->jmp, 1); |
