home *** CD-ROM | disk | FTP | other *** search
- #ifndef __SAFE_NEW_H__
- #define __SAFE_NEW_H__
-
- #include <stdlib.h> // ╟Σσ±ⁿ ε∩≡σΣσδσφ size_t
-
- void * __cdecl operator new( size_t s, const char * file, int line );
- void __cdecl operator delete( void * p, const char * file, int line );
-
- void * __cdecl operator new[]( size_t s, const char * file, int line );
- void __cdecl operator delete[]( void * p, const char * file, int line );
-
- void * __cdecl operator new( size_t s );
- void __cdecl operator delete( void * p );
-
- void * __cdecl operator new[]( size_t s );
- void __cdecl operator delete[]( void * p );
-
- #define new new( __FILE__, __LINE__ )
-
- #endif //__SAFE_NEW_H__