MCPcopy Create free account
hub / github.com/ddnet/ddnet / RemoveArgument

Method RemoveArgument

src/engine/shared/console.cpp:49–56  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47}
48
49void CConsole::CResult::RemoveArgument(unsigned Index)
50{
51 dbg_assert(Index < m_NumArgs, "invalid argument index");
52 for(unsigned i = Index; i < m_NumArgs - 1; i++)
53 m_apArgs[i] = m_apArgs[i + 1];
54
55 m_apArgs[m_NumArgs--] = nullptr;
56}
57
58const char *CConsole::CResult::GetString(unsigned Index) const
59{

Callers 2

ConBanRegionMethod · 0.80
ConBanRegionRangeMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected