Permalink
Browse files

correct type for arrays

  • Loading branch information...
1 parent aecd383 commit 93ca2f7d3a930d1da3395bb3856a178681a5e5cc @sakari committed May 15, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 create_bindings.rb
View
3 create_bindings.rb
@@ -59,6 +59,9 @@ def ffi_argument(arg)
if (m = arg.match(/^ *([^ ]+) *\*\*/))
return ffi_type 2, m[1]
end
+ if (m = arg.match(/^ *([^ ]+) *\*.*\[.*\]/))
+ return ffi_type 2, m[1]
+ end
if (m = arg.match(/^ *([^ ]+) *\*/))
return ffi_type 1, m[1]
end

0 comments on commit 93ca2f7

Please sign in to comment.