MCPcopy Create free account
hub / github.com/ValveSoftware/GameNetworkingSockets / ParseLogLevelValue

Function ParseLogLevelValue

tests/test_p2p.cpp:100–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100static ESteamNetworkingSocketsDebugOutputType ParseLogLevelValue( const char *pszArg, const char *pszSwitchName )
101{
102 if ( !strcmp( pszArg, "msg" ) )
103 return k_ESteamNetworkingSocketsDebugOutputType_Msg;
104 if ( !strcmp( pszArg, "verbose" ) )
105 return k_ESteamNetworkingSocketsDebugOutputType_Verbose;
106 if ( !strcmp( pszArg, "debug" ) )
107 return k_ESteamNetworkingSocketsDebugOutputType_Debug;
108
109 TEST_Fatal( "Invalid %s '%s'. Expected one of: msg, verbose, debug", pszSwitchName, pszArg );
110 return k_ESteamNetworkingSocketsDebugOutputType_Msg;
111}
112
113void Quit( int rc )
114{

Callers 1

mainFunction · 0.85

Calls 1

TEST_FatalFunction · 0.85

Tested by

no test coverage detected