summaryrefslogtreecommitdiffstats
path: root/lib/efl/ffi.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-04-28 00:15:30 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-04-28 00:15:30 +0200
commitcd86f9d647525824c89552641228ca22b85c7a39 (patch)
treefa51c78777358ea5c4186342a111dbf9c5349fef /lib/efl/ffi.rb
parent07546f6f76d84f9512a7e52344ff79616caa273f (diff)
downloadffi-efl-cd86f9d647525824c89552641228ca22b85c7a39.zip
ffi-efl-cd86f9d647525824c89552641228ca22b85c7a39.tar.gz
ffi.rb nicely handle (.*)\? functions
Diffstat (limited to 'lib/efl/ffi.rb')
-rw-r--r--lib/efl/ffi.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/efl/ffi.rb b/lib/efl/ffi.rb
index 0325848..9687d99 100644
--- a/lib/efl/ffi.rb
+++ b/lib/efl/ffi.rb
@@ -53,6 +53,9 @@ module Efl
if m =~/^(.*)=$/
m_s = $1+'_set'
args_s = '*args[0]'
+ elsif m =~/^(.*)\?$/
+ m_s = $1+'_get'
+ args_s = '*args'
else
m_s = m.to_s
args_s = '*args'