Modified source engine (2017) developed by valve and leaked in 2020. Not for commercial purporses
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

25 lines
1.0 KiB

//========= 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