mirror of
https://github.com/tailix/libkernaux.git
synced 2025-02-24 15:55:41 -05:00
mruby: add assertion
This commit is contained in:
parent
d414441521
commit
80ccc1caaa
1 changed files with 1 additions and 0 deletions
|
@ -45,6 +45,7 @@ void current_mrb_finish(mrb_state *mrb)
|
|||
|
||||
mrb_state *current_mrb_get()
|
||||
{
|
||||
mrb_assert(mrb_stack_count > 0);
|
||||
mrb_assert(mrb_stack[mrb_stack_count - 1] != NULL);
|
||||
|
||||
return mrb_stack[mrb_stack_count - 1];
|
||||
|
|
Loading…
Add table
Reference in a new issue