MCPcopy Create free account
hub / github.com/ZDoom/Raze / FConsoleCommand

Method FConsoleCommand

source/common/console/c_dispatch.cpp:461–473  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

459}
460
461FConsoleCommand::FConsoleCommand (const char *name, CCmdRun runFunc)
462 : m_RunFunc (runFunc)
463{
464 int ag = strcmp (name, "kill");
465 if (ag == 0)
466 ag=0;
467 m_Name = name;
468
469 if (!AddToHash (Commands))
470 Printf ("Adding CCMD %s twice.\n", name);
471 else
472 C_AddTabCommand (name);
473}
474
475FConsoleCommand::~FConsoleCommand ()
476{

Callers

nothing calls this directly

Calls 2

PrintfFunction · 0.85
C_AddTabCommandFunction · 0.85

Tested by

no test coverage detected