diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /game/client/cstrike/buy_presets/buy_preset_debug.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'game/client/cstrike/buy_presets/buy_preset_debug.h')
| -rw-r--r-- | game/client/cstrike/buy_presets/buy_preset_debug.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/game/client/cstrike/buy_presets/buy_preset_debug.h b/game/client/cstrike/buy_presets/buy_preset_debug.h new file mode 100644 index 0000000..ded580b --- /dev/null +++ b/game/client/cstrike/buy_presets/buy_preset_debug.h @@ -0,0 +1,25 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +//============================================================================= + +#ifndef BUY_PRESET_DEBUG_H +#define BUY_PRESET_DEBUG_H +#ifdef _WIN32 +#pragma once +#endif + +//-------------------------------------------------------------------------------------------------------------- +// Utility functions for the debugging macros below +bool IsPresetDebuggingEnabled(); ///< cl_preset_debug >= 1.0f +bool IsPresetFullCostDebuggingEnabled(); ///< cl_preset_debug == 2.0f +bool IsPresetCurrentCostDebuggingEnabled(); ///< cl_preset_debug == 3.0f + +//-------------------------------------------------------------------------------------------------------------- +// Macros for conditional debugging of buy presets +#define PRESET_DEBUG if (IsPresetDebuggingEnabled()) DevMsg +#define FULLCOST_DEBUG if (IsPresetFullCostDebuggingEnabled()) DevMsg +#define CURRENTCOST_DEBUG if (IsPresetCurrentCostDebuggingEnabled()) DevMsg + +#endif // BUY_PRESET_DEBUG_H |