class Bindgen::Processor::WrapperHooks::OwnerHook

Overview

Post-hook of a wrapper method passing self and its owner argument to BindgenHelper.owned_by, which keeps self alive while the owner isn't nil, and lets it go given nil.

Defined in:

bindgen/processor/wrapper_hooks.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(owner : Call::Argument) #

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