describe call stack overwritten problem of mrb_get_backtrace; close #1661

This commit is contained in:
Yukihiro "Matz" Matsumoto
2014-01-21 17:12:14 +09:00
parent 4a12d351bb
commit b3f8f8a5b0
+7
View File
@@ -129,6 +129,13 @@ mrb_output_backtrace(mrb_state *mrb, struct RObject *exc, output_stream_func fun
}
}
/* mrb_print_backtrace/mrb_get_backtrace:
function to retrieve backtrace information from the exception.
note that if you call method after the exception, call stack will be
overwritten. So invoke these functions just after detecting exceptions.
*/
void
mrb_print_backtrace(mrb_state *mrb)
{