struct
Bindgen::Cpp::Format
- Bindgen::Cpp::Format
- Struct
- Value
- Object
Overview
Formatter for C++ style code.
Defined in:
bindgen/cpp/format.crConstructors
Instance Method Summary
-
#argument(arg : Call::Argument, idx) : String
Formats arg as
type name -
#argument_list(arguments : Enumerable(Call::Argument)) : String
Formats arguments as
type name, ... -
#function_pointer(call : Call) : String
Returns a C++ function pointer type, matching method.
- #initialize
-
#out_statements(arguments : Enumerable(Call::Argument), code : String, result_type : String | Nil) : Array(String)
The statements running code, the expression of a call, and returning its result of result_type,
nilforvoid.
Constructor Detail
Instance Method Detail
def argument_list(arguments : Enumerable(Call::Argument)) : String
#
Formats arguments as type name, ...
Returns a C++ function pointer type, matching method.
def out_statements(arguments : Enumerable(Call::Argument), code : String, result_type : String | Nil) : Array(String)
#
The statements running code, the expression of a call, and returning
its result of result_type, nil for void. Around a call with
Call::OutArguments among arguments, their prologues declare the
locals the call writes to, and their epilogues hand the values back
from the result stored in _result_ meanwhile.