MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / add_parameter

Method add_parameter

editor/ObjCScript.cpp:763–771  ·  view source on GitHub ↗

other stuff

Source from the content-addressed store, hash-verified

761
762// other stuff
763void tScriptName::add_parameter(const char *type, const char *parm) {
764 ASSERT(nparms < MAX_SCRPARAMS);
765
766 paramtypes[nparms] = new char[strlen(type) + 1];
767 parameters[nparms] = new char[strlen(parm) + 1];
768 strcpy(parameters[nparms], parm);
769 strcpy(paramtypes[nparms], type);
770 nparms++;
771}
772
773void tScriptName::free_parameters() {
774 for (int i = 0; i < nparms; i++) {

Callers 1

GenerateScriptParamInfoFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected