mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-08-04 05:55:31 +02:00
Let MiniFFI instances yield themselves in blocks
This commit is contained in:
parent
e64f6dcd1f
commit
7faafc975d
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