mrubyを超漢字で動作させる
Revision | 6137bf9e7148235b9104f74cb189663c06204e90 (tree) |
---|---|
Zeit | 2014-07-12 22:10:48 |
Autor | Yukihiro "Matz" Matsumoto <matz@ruby...> |
Commiter | Yukihiro "Matz" Matsumoto |
avoid print backtrace for SystemStackError
@@ -147,6 +147,9 @@ exc_output_backtrace(mrb_state *mrb, struct RObject *exc, output_stream_func fun | ||
147 | 147 | void |
148 | 148 | mrb_print_backtrace(mrb_state *mrb) |
149 | 149 | { |
150 | + if (mrb->exc || mrb_obj_is_kind_of(mrb, mrb_obj_value(mrb->exc), E_SYSSTACK_ERROR)) { | |
151 | + return; | |
152 | + } | |
150 | 153 | exc_output_backtrace(mrb, mrb->exc, print_backtrace_i, (void*)stderr); |
151 | 154 | } |
152 | 155 |