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

Version Path
gir_ffi-0.6.6 lib/gir_ffi/error_argument_builder.rb
gir_ffi-0.6.5 lib/gir_ffi/error_argument_builder.rb
gir_ffi-0.6.4 lib/gir_ffi/error_argument_builder.rb
gir_ffi-0.6.3 lib/gir_ffi/error_argument_builder.rb
gir_ffi-0.6.2 lib/gir_ffi/error_argument_builder.rb
gir_ffi-0.6.1 lib/gir_ffi/error_argument_builder.rb
gir_ffi-0.6.0 lib/gir_ffi/error_argument_builder.rb
gir_ffi-0.5.2 lib/gir_ffi/error_argument_builder.rb
gir_ffi-0.5.1 lib/gir_ffi/error_argument_builder.rb
gir_ffi-0.5.0 lib/gir_ffi/error_argument_builder.rb