mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
describe call stack overwritten problem of mrb_get_backtrace; close #1661
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user