In Files

  • fiddle/closure.c
  • fiddle/fiddle.c
  • fiddle/lib/fiddle.rb
  • fiddle/lib/fiddle/closure.rb
  • fiddle/lib/fiddle/function.rb

Class/Module Index [+]

Quicksearch

Fiddle

Description

A libffi wrapper.

Constants

Pointer

A reference to DL::CPtr

TYPE_CHAR

TYPE_CHAR

C type - char

TYPE_DOUBLE

TYPE_DOUBLE

C type - double

TYPE_FLOAT

TYPE_FLOAT

C type - float

TYPE_INT

TYPE_INT

C type - int

TYPE_LONG

TYPE_LONG

C type - long

TYPE_LONG_LONG

TYPE_LONG_LONG

C type - long long

TYPE_SHORT

TYPE_SHORT

C type - short

TYPE_VOID

TYPE_VOID

C type - void

TYPE_VOIDP

TYPE_VOIDP

C type - void*

WINDOWS

Returns a boolean regarding whether the host is WIN32

Public Class Methods

last_error() click to toggle source

Returns the last Error of the current executing Thread or nil if none

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

Sets the last Error of the current executing Thread to error

 
               # File 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() click to toggle source

Returns the last win32 Error of the current executing Thread or nil if none

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

Sets the last win32 Error of the current executing Thread to error

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