mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-09-10 12:02:53 +02:00
Let MiniFFI instances yield themselves in blocks
This commit is contained in:
parent
4a37282c10
commit
8971f679d4
1 changed files with 1 additions and 0 deletions
|
@ -143,6 +143,7 @@ RB_METHOD(MiniFFI_initialize)
|
|||
}
|
||||
}
|
||||
rb_iv_set(self, "_exports", INT2FIX(ex));
|
||||
if (rb_block_given_p()) rb_yield(self);
|
||||
return Qnil;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue