Sha256: 4f967e657b95ffe9683b552631f69a6cd2fd599fbe91f5ce37852879a7d5bc0d

Contents?: true

Size: 488 Bytes

Versions: 3

Compression:

Stored size: 488 Bytes

Contents

# frozen_string_literal: true
require 'gir_ffi/error_type_info'

module GirFFI
  # Represents an error argument with the same interface as IArgumentInfo
  class ErrorArgumentInfo
    def skip?
      false
    end

    def direction
      :error
    end

    def argument_type
      @argument_type ||= ErrorTypeInfo.new
    end

    def name
      '_error'
    end

    def closure
      -1
    end

    def destroy
      -1
    end

    def caller_allocates?
      true
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gir_ffi-0.9.5 lib/gir_ffi/error_argument_info.rb
gir_ffi-0.9.4 lib/gir_ffi/error_argument_info.rb
gir_ffi-0.9.3 lib/gir_ffi/error_argument_info.rb