Sha256: 1506ec0d9119495901026a5c69e65240a29f202a70bfdc733ac2a3f949a51731

Contents?: true

Size: 430 Bytes

Versions: 2

Compression:

Stored size: 430 Bytes

Contents

# frozen_string_literal: true
require 'gir_ffi/builders/base_argument_builder'

module GirFFI
  module Builders
    # Implements post-conversion for initializer functions
    class InitializerReturnValueBuilder < BaseArgumentBuilder
      def capture_variable_name
        @capture_variable_name ||= new_variable
      end

      def post_conversion
        ["store_pointer(#{capture_variable_name})"]
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
gir_ffi-0.9.4 lib/gir_ffi/builders/initializer_return_value_builder.rb
gir_ffi-0.9.3 lib/gir_ffi/builders/initializer_return_value_builder.rb