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

Method run

source/src/console.cpp:398–410  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

396 }
397
398 void run()
399 {
400 pushscontext(IEXC_PROMPT);
401 if(action)
402 {
403 push("cmdbuf", buf);
404 execute(action);
405 pop("cmdbuf");
406 }
407 else if(buf[0]=='/') execute(buf+1);
408 else toserver(buf);
409 popscontext();
410 }
411};
412vector<hline *> history;
413int histpos = 0;

Callers 2

history_Function · 0.80
consolekeyFunction · 0.80

Calls 6

pushscontextFunction · 0.85
pushFunction · 0.85
executeFunction · 0.85
popFunction · 0.85
toserverFunction · 0.85
popscontextFunction · 0.85

Tested by

no test coverage detected