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

Function DebugOutput

examples/example_chat.cpp:54–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54static void DebugOutput( ESteamNetworkingSocketsDebugOutputType eType, const char *pszMsg )
55{
56 SteamNetworkingMicroseconds time = SteamNetworkingUtils()->GetLocalTimestamp() - g_logTimeZero;
57 printf( "%10.6f %s\n", time*1e-6, pszMsg );
58 fflush(stdout);
59 if ( eType == k_ESteamNetworkingSocketsDebugOutputType_Bug )
60 {
61 fflush(stdout);
62 fflush(stderr);
63 NukeProcess(1);
64 }
65}
66
67static void FatalError( const char *fmt, ... )
68{

Callers 2

FatalErrorFunction · 0.70
PrintfFunction · 0.70

Calls 3

SteamNetworkingUtilsFunction · 0.85
NukeProcessFunction · 0.85
GetLocalTimestampMethod · 0.80

Tested by

no test coverage detected