Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | File Members | Related Pages

win32/GMem.h

Go to the documentation of this file.
00001 
00008 #ifndef __MEMORY_H
00009 #define __MEMORY_H
00010 
00011 #include "LgiInc.h"
00012 
00013 #ifndef __cplusplus
00014 typedef unsigned char bool;
00015 #endif
00016 
00018 LgiFunc bool LgiCheckHeap();
00019 
00021 LgiFunc bool LgiCanReadMemory
00022 (
00023     void *p,
00024     int Len
00025     #ifdef __cplusplus
00026      = 1
00027     #endif
00028 );
00029 
00033 LgiFunc bool LgiDumpMemoryStats(char *filename);
00034 
00035 // Set this to '1' to switch on memory tracking, else '0'.
00036 #if 0
00037 
00038     #include <stdlib.h>
00039     
00044     #define LGI_MEM_DEBUG       1
00045 
00046     #ifdef __cplusplus
00047     void *operator              new(unsigned size);
00048     void *operator              new[](unsigned size);
00049     void operator               delete(void *p);
00050     #endif
00051 
00052     LgiFunc void *lgi_malloc(size_t size);
00053     LgiFunc void lgi_free(void *ptr);
00054 
00055     #define malloc              lgi_malloc
00056     #define free                lgi_free
00057 
00058 #else
00059 
00060     // Defined in LgiDefs.h
00061 
00062 #endif
00063 
00064 #endif

Generated on Tue May 2 10:24:42 2006 for Lgi by  doxygen 1.4.1