Groonga 3.0.9 Source Code Document
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
init.c
Go to the documentation of this file.
1 /*
2 ** init.c - initialize mruby core
3 **
4 ** See Copyright Notice in mruby.h
5 */
6 
7 #include "mruby.h"
8 
23 void mrb_init_gc(mrb_state*);
28 
29 #define DONE mrb_gc_arena_restore(mrb, 0);
30 void
32 {
33  mrb_init_symtbl(mrb); DONE;
34 
35  mrb_init_class(mrb); DONE;
36  mrb_init_object(mrb); DONE;
37  mrb_init_kernel(mrb); DONE;
40 
41  mrb_init_symbol(mrb); DONE;
43  mrb_init_proc(mrb); DONE;
44  mrb_init_string(mrb); DONE;
45  mrb_init_array(mrb); DONE;
46  mrb_init_hash(mrb); DONE;
47  mrb_init_numeric(mrb); DONE;
48  mrb_init_range(mrb); DONE;
49  mrb_init_gc(mrb); DONE;
50  mrb_init_mrblib(mrb); DONE;
51 #ifndef DISABLE_GEMS
52  mrb_init_mrbgems(mrb); DONE;
53 #endif
54 }
55 
56 void
58 {
59 #ifndef DISABLE_GEMS
60  mrb_final_mrbgems(mrb); DONE;
61 #endif
62 }