CModule.get

Generate (lazily, then cache) the named C function and return it as a typed function pointer. Fn is the function-pointer type to retrieve, e.g. int function(int, int); its linkage and attributes are normalized, so the returned pointer is always extern(C) ... nothrow @nogc. A zero-parameter function is just get!(int function()).

struct CModule
get
(
Fn
)
(
string name
)

Throws

SymbolException if no such function; SignatureException if the prototype is incompatible.