class Bindgen::Processor::CrystalWrapper::OwnerHook

Overview

Post-hook of a wrapper method keeping self alive while its argument at index, the owner, isn't nil. Unless in a constructor, nil releases self, which nothing owns then.

Defined in:

bindgen/processor/crystal_wrapper.cr

Constructors

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(index : Int32, constructor : Bool) #

[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]