MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / torque_exportstringcallback

Function torque_exportstringcallback

Engine/source/cinterface/cinterface.cpp:231–237  ·  view source on GitHub ↗

Export a function to the Torque 3D console system which matches the StringCallback function prototype specify the nameSpace, functionName, usage, min and max arguments

Source from the content-addressed store, hash-verified

229 // Export a function to the Torque 3D console system which matches the StringCallback function prototype
230 // specify the nameSpace, functionName, usage, min and max arguments
231 void torque_exportstringcallback(StringCallback cb, const char *nameSpace, const char *funcName, const char* usage, S32 minArgs, S32 maxArgs)
232 {
233 if (!nameSpace || !dStrlen(nameSpace))
234 Con::addCommand(funcName, cb, usage, minArgs + 1, maxArgs + 1);
235 else
236 Con::addCommand(nameSpace, funcName, cb, usage, minArgs + 1, maxArgs + 1);
237 }
238
239 void torque_callvoidfunction(const char* nameSpace, const char* name, S32 argc, const char ** argv)
240 {

Callers 4

ExportFunctionInternalFunction · 0.85
ExportFunctionInternalFunction · 0.85

Calls 2

addCommandFunction · 0.85
dStrlenFunction · 0.50

Tested by

no test coverage detected