00001 //---------------------------------------------------------------------------- 00002 /** @file SgMemCheck.h 00003 Memory leak checks. 00004 */ 00005 //---------------------------------------------------------------------------- 00006 00007 #ifndef SG_MEMCHECK_H 00008 #define SG_MEMCHECK_H 00009 00010 //---------------------------------------------------------------------------- 00011 00012 /** Check for memory leaks. 00013 Checks allocation counters of classes that support it with an assertion. 00014 Call this at the end of your program, when all class instances should 00015 have been destructed. 00016 */ 00017 void SgMemCheck(); 00018 00019 //---------------------------------------------------------------------------- 00020 00021 #endif // SG_MEMCHECK_H 00022