class GirFFI::Builders::ErrorArgumentBuilder

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.

Public Instance Methods

post() click to toggle source
# File lib/gir_ffi/builders/error_argument_builder.rb, line 13
def post
  [ "GirFFI::ArgHelper.check_error(#{callarg})" ]
end
pre() click to toggle source
# File lib/gir_ffi/builders/error_argument_builder.rb, line 9
def pre
  [ "#{callarg} = FFI::MemoryPointer.new(:pointer).write_pointer nil" ]
end