1
0
Fork 0
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:
Alex Kotov 2022-02-01 10:35:18 +05:00
parent d414441521
commit 80ccc1caaa
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08

View file

@ -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];