Groonga 3.0.9 Source Code Document
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
eval.c
Go to the documentation of this file.
1 #include "mruby.h"
2 #include "mruby/compile.h"
3 
4 static mrb_value
5 f_eval(mrb_state *mrb, mrb_value self)
6 {
7  char *s;
8  int len;
9 
10  mrb_get_args(mrb, "s", &s, &len);
11  return mrb_load_nstring(mrb, s, len);
12 }
13 
14 void
16 {
17  mrb_define_class_method(mrb, mrb->kernel_module, "eval", f_eval, MRB_ARGS_REQ(1));
18 }
19 
20 void
22 {
23 }