The OpenD Programming Language

SharedLib.loadSymbol

Loads the symbol specified by symbolName from a shared library.

struct SharedLib
void*
loadSymbol
(
string symbolName
,
bool doThrow = true
)

Parameters

symbolName string

The name of the symbol to load.

doThrow bool

If true, a SymbolLoadException will be thrown if the symbol is missing. If false, no exception will be thrown and the ptr parameter will be set to null.

Throws

SymbolLoadException if doThrow is true and a the symbol specified by funcName is missing from the shared library.

Meta