Description

A libffi wrapper.

Namespace
Methods
L
W
Constants
TYPE_VOID = Document-const
 

TYPE_VOID

C type - void

TYPE_VOIDP = Document-const
 

TYPE_VOIDP

C type - void*

TYPE_CHAR = Document-const
 

TYPE_CHAR

C type - char

TYPE_SHORT = Document-const
 

TYPE_SHORT

C type - short

TYPE_INT = Document-const
 

TYPE_INT

C type - int

TYPE_LONG = Document-const
 

TYPE_LONG

C type - long

TYPE_LONG_LONG = Document-const
 

TYPE_LONG_LONG

C type - long long

TYPE_FLOAT = Document-const
 

TYPE_FLOAT

C type - float

TYPE_DOUBLE = Document-const
 

TYPE_DOUBLE

C type - double

WINDOWS = Qtrue
 

Returns a boolean regarding whether the host is WIN32

Pointer = DL::CPtr
 

A reference to DL::CPtr

Class Public methods
last_error()

Returns the last Errorof the current executing Threador nil if none

# File ext/fiddle/lib/fiddle.rb, line 25
def self.last_error
  Thread.current[:__FIDDLE_LAST_ERROR__]
end
last_error=(error)

Sets the last Errorof the current executing Threadto error

# File ext/fiddle/lib/fiddle.rb, line 30
def self.last_error= error
  Thread.current[:__DL2_LAST_ERROR__] = error
  Thread.current[:__FIDDLE_LAST_ERROR__] = error
end
win32_last_error()

Returns the last win32 Errorof the current executing Threador nil if none

# File ext/fiddle/lib/fiddle.rb, line 14
def self.win32_last_error
  Thread.current[:__FIDDLE_WIN32_LAST_ERROR__]
end
win32_last_error=(error)

Sets the last win32 Errorof the current executing Threadto error

# File ext/fiddle/lib/fiddle.rb, line 19
def self.win32_last_error= error
  Thread.current[:__FIDDLE_WIN32_LAST_ERROR__] = error
end