Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Move declaration of kernel to the beginning of the method

  • Loading branch information...
commit 72f78316aa8f02c920acac052ef502786b32d636 1 parent 520b0f7
@bovi bovi authored
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));
Please sign in to comment.
Something went wrong with that request. Please try again.