mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
8956c5abb5
Since presym is now mandatory, mruby.h includes presym.h so that MRB_SYM() macros are available everywhere without explicit include. Remove redundant #include <mruby/presym.h> from all source files. Co-authored-by: Claude <noreply@anthropic.com>
14 lines
324 B
C
14 lines
324 B
C
#include <mruby.h>
|
|
|
|
static mrb_value
|
|
binding_in_c(mrb_state *mrb, mrb_value self)
|
|
{
|
|
return mrb_funcall_argv(mrb, mrb_obj_value(mrb->object_class), MRB_SYM(binding), 0, NULL);
|
|
}
|
|
|
|
void
|
|
mrb_mruby_binding_gem_test(mrb_state *mrb)
|
|
{
|
|
mrb_define_method(mrb, mrb->object_class, "binding_in_c", binding_in_c, MRB_ARGS_NONE());
|
|
}
|