A reference to DL::CPtr
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
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
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
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