1
0
mirror of https://github.com/alliedmodders/hl2sdk.git synced 2025-09-19 03:56:10 +08:00
Files
hl2sdk/common/debug_dll_check.cpp
2025-05-17 14:13:32 -04:00

17 lines
661 B
C++

//======= Copyright © 1996-2008, Valve Corporation, All rights reserved. ======//
//
// Purpose: Add a specially formatted string to each debug DLL of the form
// "%DLLNAME%.dll is built debug!". We can search for this string via
// a Perforce trigger to ensure that debug LIBs are not checked in.
//
//=============================================================================//
#if defined(DEBUG) || defined(_DEBUG)
#include "tier0/platform.h"
#define _DEBUGONLYSTRING(x) #x
#define DEBUGONLYSTRING(x) _DEBUGONLYSTRING(x)
DLL_GLOBAL_EXPORT char const *pDebugString = DEBUGONLYSTRING(DLLNAME) ".dll is built debug!";
#endif