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:
parent
2ac34927a6
commit
ad428c3a30
1 changed files with 4 additions and 4 deletions
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue