class Bindgen::Parser::Prototype

Overview

Stores the signature of a function Type, like int (char) of the function pointer int (*)(char).

Included Modules

Defined in:

bindgen/parser/prototype.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(return_type : Bindgen::Parser::Type, arguments : Array(Bindgen::Parser::Type), variadic : Bool = false, default_calling_convention : Bool = true) #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def ==(other : self) #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


def arguments : Array(Type) #

Parameter types


[View source]
def default_calling_convention? : Bool #

Is the function called like other functions of the target? This is false for a calling convention set by an attribute, like ms_abi on Linux.


[View source]
def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def return_type : Type #

Return type


[View source]
def variadic? : Bool #

Does the signature end in ...?


[View source]