MCPcopy Create free account
hub / github.com/GPUOpen-Effects/GeometryFX / DXUTOutputDebugStringA

Function DXUTOutputDebugStringA

framework/d3d11/dxut/Core/DXUTmisc.cpp:361–377  ·  view source on GitHub ↗

-------------------------------------------------------------------------------------- Outputs to the debug stream a formatted MBCS string with a variable-argument list. --------------------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

359// Outputs to the debug stream a formatted MBCS string with a variable-argument list.
360//--------------------------------------------------------------------------------------
361_Use_decl_annotations_
362VOID WINAPI DXUTOutputDebugStringA( LPCSTR strMsg, ... )
363{
364#if defined(DEBUG) || defined(_DEBUG)
365 CHAR strBuffer[512];
366
367 va_list args;
368 va_start(args, strMsg);
369 sprintf_s( strBuffer, 512, strMsg, args );
370 strBuffer[511] = '\0';
371 va_end(args);
372
373 OutputDebugStringA( strBuffer );
374#else
375 UNREFERENCED_PARAMETER( strMsg );
376#endif
377}
378
379
380//--------------------------------------------------------------------------------------

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected