module Fiddle

Constants

Pointer

A reference to DL::CPtr

Public Class Methods

last_error() click to toggle source

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

# File rake/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 rake/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 rake/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 rake/lib/fiddle.rb, line 19
def self.win32_last_error= error
  Thread.current[:__FIDDLE_WIN32_LAST_ERROR__] = error
end