diff options
| author | Jørgen P. Tjernø <[email protected]> | 2013-12-02 19:31:46 -0800 |
|---|---|---|
| committer | Jørgen P. Tjernø <[email protected]> | 2013-12-02 19:46:31 -0800 |
| commit | f56bb35301836e56582a575a75864392a0177875 (patch) | |
| tree | de61ddd39de3e7df52759711950b4c288592f0dc /mp/src/public/tier0/dbgflag.h | |
| parent | Mark some more files as text. (diff) | |
| download | source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.tar.xz source-sdk-2013-f56bb35301836e56582a575a75864392a0177875.zip | |
Fix line endings. WHAMMY.
Diffstat (limited to 'mp/src/public/tier0/dbgflag.h')
| -rw-r--r-- | mp/src/public/tier0/dbgflag.h | 130 |
1 files changed, 65 insertions, 65 deletions
diff --git a/mp/src/public/tier0/dbgflag.h b/mp/src/public/tier0/dbgflag.h index 5d9b2bb7..05f84c9d 100644 --- a/mp/src/public/tier0/dbgflag.h +++ b/mp/src/public/tier0/dbgflag.h @@ -1,65 +1,65 @@ -//========= Copyright Valve Corporation, All rights reserved. ============//
-//
-// Purpose: This file sets all of our debugging flags. It should be
-// called before all other header files.
-//
-// $NoKeywords: $
-//=============================================================================//
-
-#ifndef DBGFLAG_H
-#define DBGFLAG_H
-#ifdef _WIN32
-#pragma once
-#endif
-
-
-// Here are all the flags we support:
-// DBGFLAG_MEMORY: Enables our memory debugging system, which overrides malloc & free
-// DBGFLAG_MEMORY_NEWDEL: Enables new / delete tracking for memory debug system. Requires DBGFLAG_MEMORY to be enabled.
-// DBGFLAG_VALIDATE: Enables our recursive validation system for checking integrity and memory leaks
-// DBGFLAG_ASSERT: Turns Assert on or off (when off, it isn't compiled at all)
-// DBGFLAG_ASSERTFATAL: Turns AssertFatal on or off (when off, it isn't compiled at all)
-// DBGFLAG_ASSERTDLG: Turns assert dialogs on or off and debug breaks on or off when not under the debugger.
-// (Dialogs will always be on when process is being debugged.)
-// DBGFLAG_STRINGS: Turns on hardcore string validation (slow but safe)
-
-#undef DBGFLAG_MEMORY
-#undef DBGFLAG_MEMORY_NEWDEL
-#undef DBGFLAG_VALIDATE
-#undef DBGFLAG_ASSERT
-#undef DBGFLAG_ASSERTFATAL
-#undef DBGFLAG_ASSERTDLG
-#undef DBGFLAG_STRINGS
-
-//-----------------------------------------------------------------------------
-// Default flags for debug builds
-//-----------------------------------------------------------------------------
-#if (defined( _DEBUG ) || defined( RELEASEASSERTS ) )
-
-#define DBGFLAG_MEMORY
-#ifdef _SERVER // only enable new & delete tracking for server; on client it conflicts with CRT mem leak tracking
-#define DBGFLAG_MEMORY_NEWDEL
-#endif
-#ifdef STEAM
-#define DBGFLAG_VALIDATE
-#endif
-#define DBGFLAG_ASSERT
-#define DBGFLAG_ASSERTFATAL
-#define DBGFLAG_ASSERTDLG
-#define DBGFLAG_STRINGS
-
-
-//-----------------------------------------------------------------------------
-// Default flags for release builds
-//-----------------------------------------------------------------------------
-#else // _DEBUG
-
-#ifdef STEAM
-#define DBGFLAG_ASSERT
-#endif
-#define DBGFLAG_ASSERTFATAL // note: fatal asserts are enabled in release builds
-#define DBGFLAG_ASSERTDLG
-
-#endif // _DEBUG
-
-#endif // DBGFLAG_H
+//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: This file sets all of our debugging flags. It should be +// called before all other header files. +// +// $NoKeywords: $ +//=============================================================================// + +#ifndef DBGFLAG_H +#define DBGFLAG_H +#ifdef _WIN32 +#pragma once +#endif + + +// Here are all the flags we support: +// DBGFLAG_MEMORY: Enables our memory debugging system, which overrides malloc & free +// DBGFLAG_MEMORY_NEWDEL: Enables new / delete tracking for memory debug system. Requires DBGFLAG_MEMORY to be enabled. +// DBGFLAG_VALIDATE: Enables our recursive validation system for checking integrity and memory leaks +// DBGFLAG_ASSERT: Turns Assert on or off (when off, it isn't compiled at all) +// DBGFLAG_ASSERTFATAL: Turns AssertFatal on or off (when off, it isn't compiled at all) +// DBGFLAG_ASSERTDLG: Turns assert dialogs on or off and debug breaks on or off when not under the debugger. +// (Dialogs will always be on when process is being debugged.) +// DBGFLAG_STRINGS: Turns on hardcore string validation (slow but safe) + +#undef DBGFLAG_MEMORY +#undef DBGFLAG_MEMORY_NEWDEL +#undef DBGFLAG_VALIDATE +#undef DBGFLAG_ASSERT +#undef DBGFLAG_ASSERTFATAL +#undef DBGFLAG_ASSERTDLG +#undef DBGFLAG_STRINGS + +//----------------------------------------------------------------------------- +// Default flags for debug builds +//----------------------------------------------------------------------------- +#if (defined( _DEBUG ) || defined( RELEASEASSERTS ) ) + +#define DBGFLAG_MEMORY +#ifdef _SERVER // only enable new & delete tracking for server; on client it conflicts with CRT mem leak tracking +#define DBGFLAG_MEMORY_NEWDEL +#endif +#ifdef STEAM +#define DBGFLAG_VALIDATE +#endif +#define DBGFLAG_ASSERT +#define DBGFLAG_ASSERTFATAL +#define DBGFLAG_ASSERTDLG +#define DBGFLAG_STRINGS + + +//----------------------------------------------------------------------------- +// Default flags for release builds +//----------------------------------------------------------------------------- +#else // _DEBUG + +#ifdef STEAM +#define DBGFLAG_ASSERT +#endif +#define DBGFLAG_ASSERTFATAL // note: fatal asserts are enabled in release builds +#define DBGFLAG_ASSERTDLG + +#endif // _DEBUG + +#endif // DBGFLAG_H |