Method: Fiddle.win32_last_error=
- Defined in:
- lib/fiddle.rb
.win32_last_error=(error) ⇒ Object
Sets the last win32 Error
of the current executing Thread
to error
26 27 28 29 30 31 32 |
# File 'lib/fiddle.rb', line 26 def self.win32_last_error= error if RUBY_ENGINE == 'jruby' FFI.errno = error || 0 else Thread.current[:__FIDDLE_WIN32_LAST_ERROR__] = error end end |