diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-03-19 07:54:22 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2014-03-19 07:54:22 +0900 |
| commit | 2f4eed25017903ab525e881107817024d36e3c66 (patch) | |
| tree | 1a72a6a265f5a54be0b3f5bb257b201a848b4e01 /include/mruby.h | |
| parent | 792c1add0cc44a60ecad661b86fd16bf773a5d58 (diff) | |
| parent | 40c18fca77175a9e2882baa1975d4460412a4d28 (diff) | |
| download | mruby-2f4eed25017903ab525e881107817024d36e3c66.tar.gz mruby-2f4eed25017903ab525e881107817024d36e3c66.zip | |
Merge pull request #1889 from iij/pr-struct-new-block-def
Set the newly created Struct object to self in its initialization block.
Diffstat (limited to 'include/mruby.h')
| -rw-r--r-- | include/mruby.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/mruby.h b/include/mruby.h index 303b00ccf..3eda0193f 100644 --- a/include/mruby.h +++ b/include/mruby.h @@ -364,6 +364,7 @@ void mrb_print_error(mrb_state *mrb); mrb_value mrb_yield(mrb_state *mrb, mrb_value b, mrb_value arg); mrb_value mrb_yield_argv(mrb_state *mrb, mrb_value b, int argc, mrb_value *argv); +mrb_value mrb_yield_internal(mrb_state *mrb, mrb_value b, int argc, mrb_value *argv, mrb_value self, struct RClass *c); void mrb_gc_protect(mrb_state *mrb, mrb_value obj); mrb_value mrb_to_int(mrb_state *mrb, mrb_value val); |
