Sha256: 99b8a4d92c21f58159e478812bf7c6accf9ac62c6f718dc189268e00594bb0e4
Contents?: true
Size: 551 Bytes
Versions: 7
Compression:
Stored size: 551 Bytes
Contents
require 'gir_ffi/builders/base_argument_builder' module GirFFI module Builders # Implements argument processing for error handling arguments. These # arguments are not part of the introspected signature, but their # presence is indicated by the 'throws' attribute of the function. class ErrorArgumentBuilder < BaseArgumentBuilder def pre [ "#{callarg} = FFI::MemoryPointer.new(:pointer).write_pointer nil" ] end def post [ "GirFFI::ArgHelper.check_error(#{callarg})" ] end end end end
Version data entries
7 entries across 7 versions & 1 rubygems