struct Novika::FFI::FixedArityFunction

Overview

Calls a fixed-arity C function.

Defined in:

novika/ffi.cr

Constructors

Instance Method Summary

Instance methods inherited from struct Novika::FFI::Function

call(block : Block) : Form | Nil call, id : String id, initialize initialize

Constructor methods inherited from struct Novika::FFI::Function

new new

Constructor Detail

def self.new(id : String, handle : Pointer(Void), argtypes : Array(ForeignType), return_type : ForeignType) #

Instance Method Detail

def call(block : Block) : Form | Nil #
Description copied from struct Novika::FFI::Function

Drops arguments from block and calls this function. Returns the resulting form, or nil in case this function returns Nothing (C void).


def id : String #
Description copied from struct Novika::FFI::Function

Returns the identifier of this function.