MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / TryPopInteger

Method TryPopInteger

src/openrct2/command_line/CommandLine.cpp:58–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56 }
57
58 bool CommandLineArgEnumerator::TryPopInteger(int32_t* result)
59 {
60 char const* arg;
61 if (TryPopString(&arg))
62 {
63 *result = static_cast<int32_t>(atol(arg));
64 return true;
65 }
66
67 return false;
68 }
69
70 bool CommandLineArgEnumerator::TryPopReal(float* result)
71 {

Callers 1

HandleSimulateFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected