Module: BOAST::FFIRuntime

Defined in:
lib/BOAST/Runtime/FFIRuntime.rb

Instance Method Summary collapse

Instance Method Details

#build(options = {}) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/BOAST/Runtime/FFIRuntime.rb', line 6

def build( options = {} )
  if options[:library_path] then
    eval <<EOF
def library_path
  return "#{options[:library_path]}"
end
EOF
    @marker = Tempfile::new([@procedure.name,""])
    create_ffi_module
    eval "self.extend(#{module_name})"
    return self
  else
    super
  end
end