Browse files

Move declaration of kernel to the beginning of the method

  • Loading branch information...
1 parent 520b0f7 commit 72f78316aa8f02c920acac052ef502786b32d636 @bovi bovi committed May 8, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/driver.c
View
2 test/driver.c
@@ -90,6 +90,7 @@ int
main(int argc, char **argv)
{
mrb_state *mrb;
+ struct RClass *krn;
int ret;
print_hint();
@@ -106,7 +107,6 @@ main(int argc, char **argv)
mrb_gv_set(mrb, mrb_intern(mrb, "$mrbtest_verbose"), mrb_true_value());
}
- struct RClass *krn;
krn = mrb->kernel_module;
mrb_define_method(mrb, krn, "__t_printstr__", mrb_t_printstr, MRB_ARGS_REQ(1));

0 comments on commit 72f7831

Please sign in to comment.