Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

efence.h

Go to the documentation of this file.
00001 /*
00002         Electric fence, C++ enable code.
00003 
00004         If you need to test for buffer overruns, add -lefence to your linking
00005         and include this header in one of your sourcefiles.
00006 */
00007 
00008 #ifndef header_efence
00009 #define header_efence
00010 
00011 #ifndef WIN32
00012 void *operator new(size_t size)
00013 {
00014         return malloc(size);
00015 }
00016 
00017 void operator delete(void *ptr)
00018 {
00019         free(ptr);
00020 }
00021 
00022 void operator delete[](void *ptr)
00023 {
00024         free(ptr);
00025 }
00026 #endif
00027 
00028 #endif

Generated at Wed Apr 4 19:54:00 2001 for ClanLib by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001