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

/home/James/ZEngine-dev/include/ZE_Macros.h

Go to the documentation of this file.
00001 /*******************************************************************************
00002          This file is Part of the ZEngine Library for SDL Game Development.
00003                       Copyright (C) 2002 ConceptOfZero.net
00004 
00005              Licensed under the BSD License, see licensing.txt.
00006 
00007     The maintainer of this library is James Turk (jturk@conceptofzero.net) 
00008          and the home of this Library is http://www.conceptofzero.net/
00009 *******************************************************************************/
00010 
00024 #ifndef __ze_macros_h__
00025 #define __ze_macros_h__
00026 
00027 #include "ZE_Includes.h"
00028 
00029 namespace ZE
00030 {
00031 
00035 #define FreeImage(image) if(image){SDL_FreeSurface(image); image = NULL;}
00036 
00037 #ifdef USE_SDL_MIXER
00038 
00041 #define FreeSound(sound) if(sound){Mix_FreeChunk(sound); sound = NULL;}
00042 
00045 #define FreeMusic(music) if(music){Mix_FreeMusic(music); music = NULL;}
00046 #endif
00047 
00048 #ifdef USE_SDL_TTF
00049 
00052 #define FreeFont(font) if(font){TTF_CloseFont(font); font = NULL;}
00053 #endif
00054 
00055 
00056 }
00057 
00058 #endif //__ze_macros_h__
00059 

Generated on Wed Dec 4 19:01:30 2002 for ZEngine by doxygen1.3-rc1