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

Function acronymmodestr

source/src/protocol.cpp:512–512  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

510
511const char *fullmodestr(int n) { return (n>=-1 && size_t(n+1) < sizeof(modefullnames)/sizeof(modefullnames[0])) ? modefullnames[n+1] : "unknown"; }
512const char *acronymmodestr(int n) { return (n>=-1 && size_t(n+1) < sizeof(modeacronymnames)/sizeof(modeacronymnames[0])) ? modeacronymnames[n+1] : "UNK"; } // 'n/a' bad on *nix filesystem (demonameformat)
513const char *modestr(int n, bool acronyms) { return acronyms ? acronymmodestr (n) : fullmodestr(n); }
514const char *voteerrorstr(int n) { return (n>=0 && (size_t)n < sizeof(voteerrors)/sizeof(voteerrors[0])) ? voteerrors[n] : "unknown"; }
515const char *mmfullname(int n) { return (n>=0 && n < MM_NUM) ? mmfullnames[n] : "unknown"; }

Callers 2

formatdemofilenameFunction · 0.85
modestrFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected