Sha256: 1d712c775669b4fe598c33ff3782242ab52dd012a1ea516190468865a837bcb7

Contents?: true

Size: 413 Bytes

Versions: 16

Compression:

Stored size: 413 Bytes

Contents

# frozen_string_literal: true

module GirFFI
  module Builders
    # Builder that generates code to convert closure arguments ('user data')
    # from Ruby to C. Used by argument builders.
    class ClosureToPointerConvertor
      def initialize(argument_name)
        @argument_name = argument_name
      end

      def conversion
        "GirFFI::ArgHelper.store(#{@argument_name})"
      end
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
gir_ffi-0.17.0 lib/gir_ffi/builders/closure_to_pointer_convertor.rb
gir_ffi-0.16.1 lib/gir_ffi/builders/closure_to_pointer_convertor.rb
gir_ffi-0.16.0 lib/gir_ffi/builders/closure_to_pointer_convertor.rb
gir_ffi-0.15.9 lib/gir_ffi/builders/closure_to_pointer_convertor.rb
gir_ffi-0.15.8 lib/gir_ffi/builders/closure_to_pointer_convertor.rb
gir_ffi-0.15.7 lib/gir_ffi/builders/closure_to_pointer_convertor.rb
gir_ffi-0.15.6 lib/gir_ffi/builders/closure_to_pointer_convertor.rb
gir_ffi-0.15.5 lib/gir_ffi/builders/closure_to_pointer_convertor.rb
gir_ffi-0.15.4 lib/gir_ffi/builders/closure_to_pointer_convertor.rb
gir_ffi-0.15.3 lib/gir_ffi/builders/closure_to_pointer_convertor.rb
gir_ffi-0.15.2 lib/gir_ffi/builders/closure_to_pointer_convertor.rb
gir_ffi-0.15.1 lib/gir_ffi/builders/closure_to_pointer_convertor.rb
gir_ffi-0.15.0 lib/gir_ffi/builders/closure_to_pointer_convertor.rb
gir_ffi-0.14.1 lib/gir_ffi/builders/closure_to_pointer_convertor.rb
gir_ffi-0.14.0 lib/gir_ffi/builders/closure_to_pointer_convertor.rb
gir_ffi-0.13.1 lib/gir_ffi/builders/closure_to_pointer_convertor.rb