Sha256: 71a164c93a3cf33da3a86a9257b05eb4d126d748f7617903297054de69ea9fe9

Contents?: true

Size: 249 Bytes

Versions: 2

Compression:

Stored size: 249 Bytes

Contents

module Xgb
  module Utils
    private

    def check_result(err)
      if err != 0
        # make friendly
        message = FFI.XGBGetLastError.split("\n").first.split(/:\d+: /, 2).last
        raise Xgb::Error, message
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
xgb-0.1.2 lib/xgb/utils.rb
xgb-0.1.1 lib/xgb/utils.rb