DynamicLib.call

Calls the function named functionName from this dynamic library.

struct DynamicLib
ref @system
call
(
T
)
(
in char[] functionName
,
auto ref ParameterTypeTuple!T params
)

Throws

Exception if the function is not found or has null address.

Examples

extern(C) alias F = int function(int) nothrow;
const int res = dynLib.call!F("f", 5);

Meta