Export a function to the Torque 3D console system which matches the StringCallback function prototype specify the nameSpace, functionName, usage, min and max arguments
| 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 | { |
no test coverage detected