Sha256: 6e6178d434b14208933af85d2ab7f0084bc8ba8b9dc9bbc6f5294b9508b01339

Contents?: true

Size: 343 Bytes

Versions: 1

Compression:

Stored size: 343 Bytes

Contents

# This is only used to be able to read get the last ZMQ error.
module CZMQ::FFI::Errors
  # @return [String] error code of the last (ZMQ) error
  def self.errno
    CZMQ::FFI::LibZMQ.zmq_errno
  end

  # @return [String] the string representation of the last (ZMQ) error
  def self.strerror
    CZMQ::FFI::LibZMQ.zmq_strerror(errno)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
czmq-ffi-gen-0.8.2 lib/czmq-ffi-gen/errors.rb