struct

Bindgen::Cpp::Format

Inherits Struct < Value < Object

Formatter for C++ style code.

Constructors

Instance methods

argument(arg : Call::Argument, idx) : String

Formats arg as type name

Source
argument_list(arguments : Enumerable(Call::Argument)) : String

Formats arguments as type name, ...

Source
function_pointer(call : Call) : String

Returns a C++ function pointer type, matching method.

Source
initialize
Source
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.

Source