module
Importance_1
Ruby latest stable (v2_5_5) - 0 notes

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
Show files where this module is defined (1 file)
Register or log in to add new notes.