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

Function DXUTOutputDebugStringW

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

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

Source from the content-addressed store, hash-verified

337// Outputs to the debug stream a formatted Unicode string with a variable-argument list.
338//--------------------------------------------------------------------------------------
339_Use_decl_annotations_
340VOID WINAPI DXUTOutputDebugStringW( LPCWSTR strMsg, ... )
341{
342#if defined(DEBUG) || defined(_DEBUG)
343 WCHAR strBuffer[512];
344
345 va_list args;
346 va_start(args, strMsg);
347 vswprintf_s( strBuffer, 512, strMsg, args );
348 strBuffer[511] = L'\0';
349 va_end(args);
350
351 OutputDebugString( strBuffer );
352#else
353 UNREFERENCED_PARAMETER( strMsg );
354#endif
355}
356
357
358//--------------------------------------------------------------------------------------

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected