Sha256: d6e1e408d70c9b4312fd58f9afd5cd28f78a6a48f6a4eaef3e2bc2da9457ce74

Contents?: true

Size: 393 Bytes

Versions: 3

Compression:

Stored size: 393 Bytes

Contents

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::InPointer.from_closure_data(#{@argument_name})"
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gir_ffi-0.7.10 lib/gir_ffi/builders/closure_to_pointer_convertor.rb
gir_ffi-0.7.9 lib/gir_ffi/builders/closure_to_pointer_convertor.rb
gir_ffi-0.7.8 lib/gir_ffi/builders/closure_to_pointer_convertor.rb