nogc does not invoke the Garbage Collector.SpecificationNo-GC Functions
Sourcenogc.d
Documentationhttps://dlang.org/phobos/dmd_nogc.html
NOGCVisitor:dmd.visitor.StoppableVisitor;setGC(Scope*sc, FuncDeclarationfd, Locloc, const(char)*fmt, RootObject[]args...);Scope*sc | scope that the GC action is in |
FuncDeclarationfd | function |
Locloc | location of GC action |
const(char)*fmt | format string for error message. Must include "%s%s" for the function kind and name. |
RootObject[]args | arguments to format string |
setGCCall(Scope*sc, FuncDeclarationfd, FuncDeclarationf);Scope*sc | scope that the GC action is in |
FuncDeclarationfd | function doing the call |
FuncDeclarationf | function being called |