Sha256: d4ad363da129fec0dba8967c4b487e4e34a6df703333b7217fd99f0bcb02ef46

Contents?: true

Size: 394 Bytes

Versions: 8

Compression:

Stored size: 394 Bytes

Contents

module GirFFI
  module InfoExt
    # Extensions for GObjectIntrospection::IFunctionInfo needed by GirFFI
    module IFunctionInfo
      def argument_ffi_types
        super.tap do |types|
          types.unshift :pointer if method?
          types << :pointer if throws?
        end
      end
    end
  end
end

GObjectIntrospection::IFunctionInfo.send :include, GirFFI::InfoExt::IFunctionInfo

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
gir_ffi-0.6.7 lib/gir_ffi/info_ext/i_function_info.rb
gir_ffi-0.6.6 lib/gir_ffi/info_ext/i_function_info.rb
gir_ffi-0.6.5 lib/gir_ffi/info_ext/i_function_info.rb
gir_ffi-0.6.4 lib/gir_ffi/info_ext/i_function_info.rb
gir_ffi-0.6.3 lib/gir_ffi/info_ext/i_function_info.rb
gir_ffi-0.6.2 lib/gir_ffi/info_ext/i_function_info.rb
gir_ffi-0.6.1 lib/gir_ffi/info_ext/i_function_info.rb
gir_ffi-0.6.0 lib/gir_ffi/info_ext/i_function_info.rb