mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge pull request #2619 from suzukaze/refactor-mrbc_context_new
Refactor mrbc_context_new func
This commit is contained in:
+1
-4
@@ -5447,10 +5447,7 @@ mrb_parser_free(parser_state *p) {
|
||||
MRB_API mrbc_context*
|
||||
mrbc_context_new(mrb_state *mrb)
|
||||
{
|
||||
mrbc_context *c;
|
||||
|
||||
c = (mrbc_context *)mrb_calloc(mrb, 1, sizeof(mrbc_context));
|
||||
return c;
|
||||
return (mrbc_context *)mrb_calloc(mrb, 1, sizeof(mrbc_context));
|
||||
}
|
||||
|
||||
MRB_API void
|
||||
|
||||
Reference in New Issue
Block a user