D
Daniel Berger
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi all,
RubyInline 3.6.0
Ruby 1.8.5
Suse Linux 10.1
How do you call an existing function from an included header file using
RubyInline? Do I have to wrap it in a 'built' function?
For example, say I have this bit of code, and that test.h has a function
defined as "const char* test_version(void)".
require 'inline'
class Foo
inline do |builder|
builder.include "<test.h>"
builder.add_compile_flags "-ltest"
end
# And later...
def self.version
inline do |builder|
# What do I put here?
end
end
end
I've tried a few variations, but haven't had any luck.
Thanks,
Dan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
iD8DBQFFHfc13p/dorzCFX0RAiPZAJ47WC+xUXynxGwX0LTreGUOyvN0ogCggqFK
42XUfdKPzNj/xAg/pp3h67c=
=yCUY
-----END PGP SIGNATURE-----
Hash: SHA1
Hi all,
RubyInline 3.6.0
Ruby 1.8.5
Suse Linux 10.1
How do you call an existing function from an included header file using
RubyInline? Do I have to wrap it in a 'built' function?
For example, say I have this bit of code, and that test.h has a function
defined as "const char* test_version(void)".
require 'inline'
class Foo
inline do |builder|
builder.include "<test.h>"
builder.add_compile_flags "-ltest"
end
# And later...
def self.version
inline do |builder|
# What do I put here?
end
end
end
I've tried a few variations, but haven't had any luck.
Thanks,
Dan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org
iD8DBQFFHfc13p/dorzCFX0RAiPZAJ47WC+xUXynxGwX0LTreGUOyvN0ogCggqFK
42XUfdKPzNj/xAg/pp3h67c=
=yCUY
-----END PGP SIGNATURE-----