MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / outputDebugString

Method outputDebugString

Engine/source/platformWin32/winProcessControl.cpp:46–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46void Platform::outputDebugString( const char *string, ... )
47{
48 // Expand string.
49
50 char buffer[ 2048 ];
51
52 va_list args;
53 va_start( args, string );
54
55 dVsprintf( buffer, sizeof( buffer ), string, args );
56 va_end( args );
57
58 // Append a newline to buffer. This is better than calling OutputDebugStringA
59 // twice as in a multi-threaded environment, some other thread may output some
60 // stuff in between the two calls.
61
62 U32 length = strlen( buffer );
63 if( length == ( sizeof( buffer ) - 1 ) )
64 length --;
65
66 buffer[ length ] = '\n';
67 buffer[ length + 1 ] = '\0';
68
69 OutputDebugStringA( buffer );
70}
71

Callers

nothing calls this directly

Calls 1

dVsprintfFunction · 0.85

Tested by

no test coverage detected