diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-02-25 22:49:20 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-02-25 22:49:20 +0000 |
commit | 59e4e93ef7b6b7f1536e3c56374cc6b8d74b5d28 (patch) | |
tree | 8ef0ee021c12e0ff884aaa2cc963845ab61fa41e /ext/dl/lib/dl/value.rb | |
parent | 9d818a221ec86fb15bfe696995829807be49a1da (diff) |
* ext/dl: revert dl with libffi because it can't run on mswin now.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26764 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/dl/lib/dl/value.rb')
-rw-r--r-- | ext/dl/lib/dl/value.rb | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/ext/dl/lib/dl/value.rb b/ext/dl/lib/dl/value.rb index cc6da6a7fb..56dfcefa32 100644 --- a/ext/dl/lib/dl/value.rb +++ b/ext/dl/lib/dl/value.rb @@ -36,7 +36,16 @@ module DL end end - def wrap_arg(arg, ty, funcs = [], &block) + def wrap_args(args, tys, funcs, &block) + result = [] + tys ||= [] + args.each_with_index{|arg, idx| + result.push(wrap_arg(arg, tys[idx], funcs, &block)) + } + result + end + + def wrap_arg(arg, ty, funcs, &block) funcs ||= [] case arg when nil |