Skip to content

Instantly share code, notes, and snippets.

@scalone
Created January 25, 2018 20:59
Show Gist options
  • Save scalone/bf19be17c1a8de36cf0f440fcbd8be69 to your computer and use it in GitHub Desktop.
Save scalone/bf19be17c1a8de36cf0f440fcbd8be69 to your computer and use it in GitHub Desktop.
int main(void)
{
mrbc_context *c;
mrb_state *mrb;
mrb_allocf allocf;
void *ud;
context_memprof_init(&allocf, &ud);
mrb = mrb_open_allocf(allocf, ud);
c = mrbc_context_new(mrb);
mrb_load_string_cxt(mrb, "puts('TEM QUE ACABAR A JUSTICA')", c);
mrbc_context_free(mrb, c);
mrb_close(mrb);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment