chore: format everything

This commit is contained in:
Tropical
2026-03-30 02:13:59 -05:00
parent 470ddf959d
commit c9b90cae2c
463 changed files with 12748 additions and 11285 deletions

View File

@@ -7,17 +7,16 @@
// Desc: Internal helper function
//--------------------------------------------------------------------------------------
#if !defined(_CONTENT_PACKAGE)
static void DebugSpewV(const char* strFormat, va_list pArgList)
{
static void DebugSpewV(const char* strFormat, va_list pArgList) {
#if defined(__linux__)
assert(0);
assert(0);
#else
char str[2048];
// Use the secure CRT to avoid buffer overruns. Specify a count of
// _TRUNCATE so that too long strings will be silently truncated
// rather than triggering an error.
_vsnprintf_s( str, _TRUNCATE, strFormat, pArgList );
OutputDebugStringA( str );
char str[2048];
// Use the secure CRT to avoid buffer overruns. Specify a count of
// _TRUNCATE so that too long strings will be silently truncated
// rather than triggering an error.
_vsnprintf_s(str, _TRUNCATE, strFormat, pArgList);
OutputDebugStringA(str);
#endif
}
#endif
@@ -26,12 +25,11 @@ static void DebugSpewV(const char* strFormat, va_list pArgList)
// Name: DebugPrintf()
// Desc: Prints formatted debug spew
//--------------------------------------------------------------------------------------
void CDECL DebugPrintf(const char* strFormat, ...)
{
void CDECL DebugPrintf(const char* strFormat, ...) {
#if !defined(_CONTENT_PACKAGE)
va_list pArgList;
va_start( pArgList, strFormat );
DebugSpewV( strFormat, pArgList );
va_end( pArgList );
va_list pArgList;
va_start(pArgList, strFormat);
DebugSpewV(strFormat, pArgList);
va_end(pArgList);
#endif
}