MCPcopy Create free account
hub / github.com/GameTechDev/PresentMon / ParseArgPrefix

Function ParseArgPrefix

PresentMon/CommandLine.cpp:194–210  ·  view source on GitHub ↗

Allow /ARG, -ARG, or --ARG

Source from the content-addressed store, hash-verified

192
193// Allow /ARG, -ARG, or --ARG
194bool ParseArgPrefix(wchar_t** arg)
195{
196 if (**arg == '/') {
197 *arg += 1;
198 return true;
199 }
200
201 if (**arg == '-') {
202 *arg += 1;
203 if (**arg == '-') {
204 *arg += 1;
205 }
206 return true;
207 }
208
209 return false;
210}
211
212bool ParseArg(wchar_t* arg, wchar_t const* option)
213{

Callers 1

ParseArgFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected