class
Bindgen::Parser::Prototype
- Bindgen::Parser::Prototype
- Reference
- Object
Overview
Stores the signature of a function Type, like int (char) of the
function pointer int (*)(char).
Included Modules
- JSON::Serializable
Defined in:
bindgen/parser/prototype.crConstructors
- .new(return_type : Bindgen::Parser::Type, arguments : Array(Bindgen::Parser::Type), variadic : Bool = false, default_calling_convention : Bool = true)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#==(other : self)
Returns
trueif this reference is the same as other. -
#arguments : Array(Type)
Parameter types
-
#default_calling_convention? : Bool
Is the function called like other functions of the target? This is
falsefor a calling convention set by an attribute, likems_abion Linux. -
#hash(hasher)
See
Object#hash(hasher) -
#return_type : Type
Return type
-
#variadic? : Bool
Does the signature end in
...?
Constructor Detail
def self.new(return_type : Bindgen::Parser::Type, arguments : Array(Bindgen::Parser::Type), variadic : Bool = false, default_calling_convention : Bool = true)
#
Instance Method Detail
def ==(other : self)
#
Description copied from class Reference
Returns true if this reference is the same as other. Invokes same?.
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.