Sha256: c54fda3ea25dd6a2d12518fd8fd5952d306906ef863a543e316981fbe7fce9c6
Contents?: true
Size: 373 Bytes
Versions: 3
Compression:
Stored size: 373 Bytes
Contents
module Ngt module Utils # private def self.ffi(method, *args) res = FFI.send(method, *args) message = FFI.ngt_get_error_string(args.last) unless message.empty? FFI.ngt_clear_error_string(args.last) raise Error, message end res end private def ffi(*args) Utils.ffi(*args, @error) end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ngt-0.5.0 | lib/ngt/utils.rb |
ngt-0.4.2 | lib/ngt/utils.rb |
ngt-0.4.1 | lib/ngt/utils.rb |