class Bindgen::CallBuilder::CppCall::DependsOnBody

Overview

Body of a constructor allocating a CrystalGCWrapper, which stores the arguments at indices in the new object through bindgen_depends_on, so the GC destroys it before them. See depends_on:.

Defined in:

bindgen/call_builder/cpp_call.cr

Constructors

Class Method Summary

Instance Method Summary

Instance methods inherited from class Bindgen::Call::Body

to_code(call : Call, platform : Graph::Platform) : String to_code

Constructor Detail

def self.new(indices : Array(Int32)) #

[View source]

Class Method Detail

def self.dependencies(call : Call, indices : Array(Int32)) : String #

The arguments at indices of call, as pointers.


[View source]

Instance Method Detail

def to_code(call : Call, platform : Graph::Platform) : String #
Description copied from class Bindgen::Call::Body

Will be called by a Generator later on, passing in the call and the target platform.


[View source]