00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00024 #ifndef __ze_macros_h__
00025 #define __ze_macros_h__
00026
00027 #include "ZE_Includes.h"
00028
00029 namespace ZE
00030 {
00031
00032 #define FreeImage(image) if(image){SDL_FreeSurface(image); image = NULL;}
00033
00034 #ifdef USE_SDL_MIXER
00035 #define FreeSound(sound) if(sound){Mix_FreeChunk(sound); sound = NULL;}
00036 #define FreeMusic(music) if(music){Mix_FreeMusic(music); music = NULL;}
00037 #endif
00038
00039 #ifdef USE_SDL_TTF
00040 #define FreeFont(font) if(font){TTF_CloseFont(font); font = NULL;}
00041 #endif
00042
00043
00044 }
00045
00046 #endif //__ze_macros_h__