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

Method GetInteger

src/engine/shared/console.cpp:65–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

63}
64
65int CConsole::CResult::GetInteger(unsigned Index) const
66{
67 if(Index >= m_NumArgs)
68 return 0;
69 int Out;
70 return str_toint(m_apArgs[Index], &Out) ? Out : 0;
71}
72
73float CConsole::CResult::GetFloat(unsigned Index) const
74{

Callers 15

Con_SaveReplayMethod · 0.45
Con_BenchmarkQuitMethod · 0.45
ConchainWindowScreenMethod · 0.45
ConchainFullscreenMethod · 0.45
ConchainWindowVSyncMethod · 0.45
ConBanMethod · 0.45
ConBanRangeMethod · 0.45
ConBansMethod · 0.45
CommandCallbackMethod · 0.45
Con_ToggleMethod · 0.45
Con_ToggleStrokeMethod · 0.45

Calls 1

str_tointFunction · 0.85

Tested by

no test coverage detected