diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2011-05-05 00:13:06 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2011-05-05 00:13:06 +0200 |
commit | f3d11962e77d25d19a312b4baa1a390539b2187b (patch) | |
tree | d7a3842583a0607cba272a85b210f5947ed9ec57 /tools | |
parent | e4baccaefd209a25daa3ff8d5277fe86aca1d379 (diff) | |
download | ffi-efl-f3d11962e77d25d19a312b4baa1a390539b2187b.zip ffi-efl-f3d11962e77d25d19a312b4baa1a390539b2187b.tar.gz |
all FFI into one module Efl::Native
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/genruby.rb | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/tools/genruby.rb b/tools/genruby.rb index 497a855..d94036c 100755 --- a/tools/genruby.rb +++ b/tools/genruby.rb @@ -25,7 +25,7 @@ libraries = [ [ 'Elementary.h', 'Elm', 'elm', 'libelementary-ver-pre-svn-09.so.0', 'elementary.rb' ], ] # -INDENT=' '*12 +INDENT=' '*8 # HEADER =<<-EOF #! /usr/bin/env ruby @@ -39,17 +39,18 @@ module Efl # def self.method_missing m, *args, &block sym = 'FCT_PREFIX_'+m.to_s - raise NameError.new "\#{self.name}.\#{sym} (\#{m})" if not Efl::MNAME::Native.respond_to? sym - self.module_eval "def self.\#{m} *args, █ r=Efl::MNAME::Native.\#{sym}(*args); yield r if block_given?; r; end" + raise NameError.new "\#{self.name}.\#{sym} (\#{m})" if not Efl::Native.respond_to? sym + self.module_eval "def self.\#{m} *args, █ r=Efl::Native.\#{sym}(*args); yield r if block_given?; r; end" self.send m, *args, &block end # - module Native - # - extend Efl::FFIHelper + end + # + module Native + # + extend Efl::FFIHelper EOF FOOTER =<<-EOF - end end end # |