• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

mrubyを超漢字で動作させる


Commit MetaInfo

Revision6137bf9e7148235b9104f74cb189663c06204e90 (tree)
Zeit2014-07-12 22:10:48
AutorYukihiro "Matz" Matsumoto <matz@ruby...>
CommiterYukihiro "Matz" Matsumoto

Log Message

avoid print backtrace for SystemStackError

Ändern Zusammenfassung

Diff

--- a/src/backtrace.c
+++ b/src/backtrace.c
@@ -147,6 +147,9 @@ exc_output_backtrace(mrb_state *mrb, struct RObject *exc, output_stream_func fun
147147 void
148148 mrb_print_backtrace(mrb_state *mrb)
149149 {
150+ if (mrb->exc || mrb_obj_is_kind_of(mrb, mrb_obj_value(mrb->exc), E_SYSSTACK_ERROR)) {
151+ return;
152+ }
150153 exc_output_backtrace(mrb, mrb->exc, print_backtrace_i, (void*)stderr);
151154 }
152155