class

Bindgen::CallBuilder::CppCall::BraceBody

Inherits Bindgen::Call::Body < Reference < Object

Body used for brace initialization. The braces are put right behind the call name, which initializes the aggregate in place.

If a value_type is given, the call name is a function instead, which is called with a brace-initialized value_type. This copies or moves the value.

Constructors

new(value_type : String | Nil = nil)
Source

Instance methods

to_code(call : Call, platform : Graph::Platform) : String

Will be called by a Generator later on, passing in the call and the target platform.

Source