Team Fortress 2 Source Code as on 22/4/2020
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.

16 lines
639 B

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