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

capture_variable_name() click to toggle source
# File lib/gir_ffi/builders/error_argument_builder.rb, line 17
def capture_variable_name
  nil
end
method_argument_name() click to toggle source
# File lib/gir_ffi/builders/error_argument_builder.rb, line 9
def method_argument_name
  nil
end
post_conversion() click to toggle source
# File lib/gir_ffi/builders/error_argument_builder.rb, line 25
def post_conversion
  ["GirFFI::ArgHelper.check_error(#{call_argument_name})"]
end
pre_conversion() click to toggle source
# File lib/gir_ffi/builders/error_argument_builder.rb, line 21
def pre_conversion
  ["#{call_argument_name} = FFI::MemoryPointer.new(:pointer).write_pointer nil"]
end
return_value_name() click to toggle source
# File lib/gir_ffi/builders/error_argument_builder.rb, line 13
def return_value_name
  nil
end