MCPcopy Create free account
hub / github.com/ValveSoftware/openvr / dprintf

Function dprintf

samples/hmd_opencv_sandbox/common_hello.cpp:47–68  ·  view source on GitHub ↗

----------------------------------------------------------------------------- Purpose: Outputs a set of optional arguments to debugging output, using the printf format setting specified in fmt*. -----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

45// the printf format setting specified in fmt*.
46//-----------------------------------------------------------------------------
47void dprintf( int stream, const char *fmt, ... )
48{
49 va_list args;
50 char buffer[2048];
51
52 va_start( args, fmt );
53 vsprintf_s( buffer, fmt, args );
54 va_end( args );
55
56 if ( stream == 0 )
57 {
58 printf( "%s", buffer );
59 if( APP ) APP->m_trmErrors.Append( buffer );
60 }
61 else
62 {
63 if ( APP ) APP->m_trmProfile.Append( buffer );
64 }
65
66
67 OutputDebugStringA( buffer );
68}
69
70
71

Callers 14

OpenCVAppStartMethod · 0.70
PrerenderMethod · 0.70
PrerenderMethod · 0.70
LoadSettingsMethod · 0.70
PrerenderMethod · 0.70
PrintMethod · 0.70
~CMainApplicationMethod · 0.70
DebugCallbackFunction · 0.70
ShutdownMethod · 0.70
HandleInputMethod · 0.70
RunMainLoopMethod · 0.70
ProcessVREventMethod · 0.70

Calls 1

AppendMethod · 0.80

Tested by

no test coverage detected