Setup.h

Go to the documentation of this file.
00001 
00002 //Luke Lenhart, 2007
00003 //See /docs/License.txt for details on how this code may be used.
00004 
00005 #pragma once
00006 
00007 // -- -- -- Framework Setup -- -- --
00009 namespace MPMA
00010 {
00014     class InitAndShutdown
00015     {
00016     public:
00017         InitAndShutdown();
00018         ~InitAndShutdown();
00019     };
00020     
00021     //Internal framework use only: registers init and shutdown callbacks
00022     void Internal_AddInitCallback(void (*pfunc)(), int priority);
00023     void Internal_AddShutdownCallback(void (*pfunc)(), int priority);
00024 }
00025 
00026 
00027 // -- -- -- Options -- -- --
00028 
00029 // -- Profiler --
00030 
00032 #define PROFILE_RELEASE
00033 
00034 
00035 // -- MemMan --
00036 
00038 #define ENABLE_MEMMAN_TRACE_IN_RELEASE
00039 #undef ENABLE_MEMMAN_TRACE_IN_RELEASE
00040 
00042 #define SAVE_ALLOC_CALL_STACK
00043 
00045 #define MEM_TRACK_OLD_FREE
00046 #undef MEM_TRACK_OLD_FREE
00047 
00048 //If defined, tracks the maximum memory size allocated through the manager.
00049 //#define TRACK_MAX_MEM
00050 
00051 
00052 // -- Debug --
00053 
00055 #define DEBUG_CALLSTACK_ENABLED
00056 
00058 #define DEBUGROUTER_ENABLED
00059 
00061 #define DEBUGROUTER_BUFFER_SIZE (8*1024)
00062 
00063 
00064 // -- Platform-specific --
00065 
00067 #define WIN32_ALLOW_STACK_WALK

Generated on Wed Feb 13 20:57:04 2008 for MPMA Framework by  doxygen 1.5.4