FANDOM



Description

Get a lua_CFunction function pointer from the call table.

lua_CFunction DXScriptFunction::getFromCallTable(const char *_identifier)

Parameters

Type Name Description
const char* _identifier The identifier of the script to be retrieved.


Returns

A valid lua_CFunction pointer on success, NULL on failure.

Example

DXScript *dxscr = new DXScript();
DXScriptFunction *dxscrf = new DXScriptFunction(dxscr);
dxscr->addCFunction("callC", dxscrf->getFromCallTable("callC"));