diff options
author | Aaron Patterson <tenderlove@ruby-lang.org> | 2021-02-26 09:57:13 -0800 |
---|---|---|
committer | Aaron Patterson <tenderlove@ruby-lang.org> | 2021-02-26 09:57:13 -0800 |
commit | 0590e9b677e8c0b7a2364f660f06d9f5bd8fe87d (patch) | |
tree | 327bdb14b684b627d41678ce30d9e2db0da37a64 /eval.c | |
parent | cfc23903df6bde6d79292d8a0291bc82e920b54e (diff) | |
download | ruby-0590e9b677e8c0b7a2364f660f06d9f5bd8fe87d.tar.gz |
Fiddle::Function responds to to_proc
This lets us cast a Fiddle::Function to a block, allowing is to write
things like:
```ruby
f = Fiddle::Function.new(@libc['strcpy'], [TYPE_VOIDP, TYPE_VOIDP], TYPE_VOIDP)
define_method :strcpy, &f
```
Diffstat (limited to 'eval.c')
0 files changed, 0 insertions, 0 deletions