Sha256: d25cac53590bec075d4193ff6f0f7f2671ea5e24a730e495585299d25cc116bb

Contents?: true

Size: 293 Bytes

Versions: 6

Compression:

Stored size: 293 Bytes

Contents

$:.unshift(File.expand_path(File.join(File.dirname(__FILE__), '../lib')))
require 'ffi-inliner'

module MyLib
  extend Inliner
  inline 'void say_hello(char* name) { printf("Hello, %s\n", name); }'
end

MyLib.say_hello('boys')

class Foo
  include MyLib
end

Foo.new.say_hello('foos')








Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
rdp-ffi-inliner-0.2.4.2 examples/ex_1.rb
rdp-ffi-inliner-0.2.4.1 examples/ex_1.rb
ffi-inliner-0.2.4 examples/ex_1.rb
ffi-inliner-0.2.3 examples/ex_1.rb
ffi-inliner-0.2.1 examples/ex_1.rb
ffi-inliner-0.2.2 examples/ex_1.rb