MCPcopy Create free account
hub / github.com/assaultcube/AC / adddocref

Function adddocref

source/src/docs.cpp:116–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

114COMMANDN(docremark, adddocremark, "s");
115
116void adddocref(char *refident)
117{
118 if(!lastident || !refident || !*refident) return;
119#ifdef _DEBUG
120 if(!strcasecmp(refident, lastident->name)) clientlogf("docref: circular reference for %s", refident);
121 loopv(lastident->references) if(!strcasecmp(lastident->references[i], refident)) clientlogf("docref: double reference %s in %s", refident, lastident->name);
122#endif
123 lastident->references.add(newstring(refident));
124}
125COMMANDN(docref, adddocref, "s");
126
127void adddocexample(char *code, char *explanation)

Callers

nothing calls this directly

Calls 4

clientlogfFunction · 0.85
newstringFunction · 0.85
loopvFunction · 0.70
addMethod · 0.45

Tested by

no test coverage detected