Counter Strike : Global Offensive Source Code
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.

27 lines
861 B

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose: Allows matching of initialization and shutdown function calls
  4. //
  5. // $NoKeywords: $
  6. //=============================================================================//
  7. #if !defined( TRACEINIT_H )
  8. #define TRACEINIT_H
  9. #ifdef _WIN32
  10. #pragma once
  11. #endif
  12. void TraceInit( const char *i, const char *s, int list );
  13. void TraceShutdown( const char *s, int list );
  14. #define TRACEINITNUM( initfunc, shutdownfunc, num ) \
  15. TraceInit( #initfunc, #shutdownfunc, num ); \
  16. initfunc;
  17. #define TRACESHUTDOWNNUM( shutdownfunc, num ) \
  18. TraceShutdown( #shutdownfunc, num ); \
  19. shutdownfunc;
  20. #define TRACEINIT( initfunc, shutdownfunc ) TRACEINITNUM( initfunc, shutdownfunc, 0 )
  21. #define TRACESHUTDOWN( shutdownfunc ) TRACESHUTDOWNNUM( shutdownfunc, 0 )
  22. #endif // TRACEINIT_H