module
Fiddle::Importer
v2_1_10 -
Show latest stable
A DSL that provides the means to dynamically load libraries and build modules around them including calling extern functions within the C library that has been loaded.
Example
require 'fiddle' require 'fiddle/import' module LibSum extend Fiddle::Importer dlload './libsum.so' extern 'double sum(double*, int)' extern 'double split(double)' end
Included modules
- Fiddle
- Fiddle::CParser
Files
- ext/fiddle/lib/fiddle/import.rb