FuncDeclaration.setGC

The function is doing something that may allocate with the GC, so mark it as not nogc (not no-how).

class FuncDeclaration
extern (D) final
bool
setGC
(,
const(char)* fmt
,
RootObject arg0 = null
)

Parameters

loc Loc

location of impure action

fmt const(char)*

format string for error message. Must include "%s %s" for the function kind and name.

arg0 RootObject

(optional) argument to format string

Return Value

Type: bool

true if function is marked as @nogc, meaning a user error occurred

Meta