Sha256: deed631fe48f701f30d7bb1211ae032798bb8ada152479a111acbb160a82bac4
Contents?: true
Size: 497 Bytes
Versions: 10
Compression:
Stored size: 497 Bytes
Contents
require 'gir_ffi/base_argument_builder' module GirFFI # 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
Version data entries
10 entries across 10 versions & 1 rubygems