mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Small cosmetic changes (adjust indent, and remove extra space)
This commit is contained in:
@@ -26,7 +26,7 @@ create_proc_from_string(mrb_state *mrb, const char *s, mrb_int len, mrb_value bi
|
||||
if (!mrb_class_defined_id(mrb, MRB_SYM(Binding))
|
||||
|| !mrb_obj_is_kind_of(mrb, binding, mrb_class_get_id(mrb, MRB_SYM(Binding)))) {
|
||||
mrb_raisef(mrb, E_TYPE_ERROR, "wrong argument type %C (expected binding)",
|
||||
mrb_obj_class(mrb, binding));
|
||||
mrb_obj_class(mrb, binding));
|
||||
}
|
||||
scope_obj = mrb_iv_get(mrb, binding, MRB_SYM(proc));
|
||||
mrb_check_type(mrb, scope_obj, MRB_TT_PROC);
|
||||
|
||||
@@ -31,7 +31,7 @@ mrb_proc_binding(mrb_state *mrb, mrb_value procval)
|
||||
}
|
||||
|
||||
proc = mrb_binding_wrap_lvspace(mrb, proc, &env);
|
||||
mrb_iv_set(mrb, binding, MRB_SYM(proc), mrb_obj_value((void *)proc));
|
||||
mrb_iv_set(mrb, binding, MRB_SYM(proc), mrb_obj_value((void*)proc));
|
||||
mrb_iv_set(mrb, binding, MRB_SYM(recv), receiver);
|
||||
mrb_iv_set(mrb, binding, MRB_SYM(env), mrb_obj_value(env));
|
||||
mrb_iv_set(mrb, binding, MRB_SYM(source_location), mrb_proc_source_location(mrb, mrb_proc_ptr(procval)));
|
||||
|
||||
Reference in New Issue
Block a user