summaryrefslogtreecommitdiffstats
path: root/lib/efl/ffi.rb
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2011-04-28 15:53:16 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2011-04-28 15:53:16 +0200
commitbc37e7474ba44f4a258892793fb1cdc0694c90f0 (patch)
tree887828d07e6bf952a1297136778a013541199ed7 /lib/efl/ffi.rb
parenta057edb6142441a9341dee805ef66288cf402423 (diff)
downloadffi-efl-bc37e7474ba44f4a258892793fb1cdc0694c90f0.zip
ffi-efl-bc37e7474ba44f4a258892793fb1cdc0694c90f0.tar.gz
move #=== and #address from Evas to FFI::Helper
Diffstat (limited to 'lib/efl/ffi.rb')
-rw-r--r--lib/efl/ffi.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/efl/ffi.rb b/lib/efl/ffi.rb
index fc1a4d6..70ba4ef 100644
--- a/lib/efl/ffi.rb
+++ b/lib/efl/ffi.rb
@@ -49,6 +49,12 @@ module Efl
m.class_eval "def self.func_prefixes; @func_prefixes; end"
m.class_eval "def self.inherited sub; sub.class_eval 'def self.func_prefixes; superclass.func_prefixes; end'; end"
end
+ def === o
+ @ptr === o.ptr
+ end
+ def address
+ @ptr.address
+ end
def method_missing m, *args, &block
if m =~/^(.*)=$/
m_s = $1+'_set'