Module: FFI::Library

Included in:
RubDev::C
Defined in:
lib/rubdev/c.rb

Instance Method Summary collapse

Instance Method Details

#attach_function!(*args, &block) ⇒ Object



24
25
26
27
28
29
30
# File 'lib/rubdev/c.rb', line 24

def attach_function!  (*args, &block)
  begin
    attach_function(*args, &block)
  rescue Exception => e
    false
  end
end