MCPcopy Index your code
hub / github.com/assaultcube/AC / addcommand

Function addcommand

source/src/command.cpp:292–299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

290COMMANDF(isIdent, "s", (char *name) { intret(identexists(name) ? 1 : 0); });
291
292bool addcommand(const char *name, void (*fun)(), const char *sig)
293{
294 ASSERT(strlen(sig) < 9);
295 if(!idents) idents = new hashtable<const char *, ident>;
296 ident c(ID_COMMAND, name, fun, sig, IEXC_CORE);
297 idents->access(name, c);
298 return false;
299}
300
301inline char *parsequotes(const char *&p)
302{

Callers 1

command.cppFile · 0.85

Calls 1

accessMethod · 0.80

Tested by

no test coverage detected