1
0
Fork 0
mirror of https://github.com/tailix/libkernaux.git synced 2026-08-15 11:00:07 -04:00

mruby: reorder code

This commit is contained in:
Alex Kotov 2022-01-30 10:26:02 +05:00
parent 2ac34927a6
commit ad428c3a30
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08

View file

@ -13,6 +13,10 @@ static mrb_value rb_KernAux_assert_cb(mrb_state *mrb, mrb_value self);
static mrb_value rb_KernAux_assert_cb_EQ(mrb_state *mrb, mrb_value self);
static mrb_value rb_KernAux_assert_do(mrb_state *mrb, mrb_value self);
// FIXME: ugly and incorrect
static mrb_state *tmp_mrb;
static mrb_value tmp_self;
void init_assert(mrb_state *const mrb)
{
kernaux_assert_cb = assert_cb;
@ -26,10 +30,6 @@ void init_assert(mrb_state *const mrb)
rb_KernAux_assert_do, MRB_ARGS_REQ(3));
}
// FIXME: ugly and incorrect
static mrb_state *tmp_mrb;
static mrb_value tmp_self;
void assert_cb(const char *const file, const int line, const char *const msg)
{
mrb_value assert_cb_rb =