Documentation Language: Swift

Function

functionCallCode(_:_:constructedRecord:ptr:rvVar:doThrow:isConstructor:useStruct:)

Swift code for calling the underlying function and assigning the raw return value

func functionCallCode(_ indentation: String, _ record: GIR.Record? = nil, constructedRecord: GIR.Record? = nil, ptr: String = "ptr", rvVar: String = "rv", doThrow: Bool = true, isConstructor: Bool = false, useStruct useRef: Bool = true) -> (GIR.Method) -> String

Parameters

indentation

The indentation string prefix to prepend.

record

The record any parameters may refer to.

constructedRecord

The record the return type may refer to.

ptr

The fallback pointer name, if the corresponding record is nil.

rvVar

The name of the variable containing the return value.

doThrow

true if the method may throw.

isConstructor

true if the method is a constructor.

useRef

Use the corresponding Ref instead of a reference-counted class.

Return Value

The Swift code for calling the underlying function.