home *** CD-ROM | disk | FTP | other *** search
/ Game.EXE 2002 April / Game.EXE_04_2002.iso / Alawar / msvc / safe_new.h < prev   
Encoding:
C/C++ Source or Header  |  2002-03-02  |  635 b   |  20 lines

  1. #ifndef __SAFE_NEW_H__
  2. #define __SAFE_NEW_H__
  3.  
  4. #include <stdlib.h> // ╟Σσ±ⁿ ε∩≡σΣσδσφ size_t
  5.  
  6. void * __cdecl operator new( size_t s, const char * file, int line );
  7. void __cdecl operator delete( void * p, const char * file, int line );
  8.  
  9. void * __cdecl operator new[]( size_t s, const char * file, int line );
  10. void __cdecl operator delete[]( void * p, const char * file, int line );
  11.  
  12. void * __cdecl operator new( size_t s );
  13. void __cdecl operator delete( void * p );
  14.  
  15. void * __cdecl operator new[]( size_t s );
  16. void __cdecl operator delete[]( void * p );
  17.  
  18. #define new new( __FILE__, __LINE__ )
  19.  
  20. #endif //__SAFE_NEW_H__