Skip to content

mrb_open

cremno edited this page Sep 10, 2013 · 2 revisions

mrb_open

Declaration Definition
mruby.h state.c
mrb_state *mrb_open(void);

Allocates a mrb_state with the default allocation function, initializes the GC and defines the default classes, modules and methods including mrbgems.

Parameters

None.

Return value

Pointer to a mrb_state or NULL if an error has occurred. The "opened" VM should be "closed" with mrb_close.

See also

Clone this wiki locally