From 6ae3a1b83eab39240fa530490387672d3d4ff660 Mon Sep 17 00:00:00 2001 From: Masaki Muranaka Date: Tue, 5 Mar 2013 01:36:56 +0900 Subject: 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. --- src/error.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/error.c') 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); -- cgit v1.2.3