diff --git a/include/ZE_Macros.h b/include/ZE_Macros.h index ca0248f..72987ed 100755 --- a/include/ZE_Macros.h +++ b/include/ZE_Macros.h @@ -13,7 +13,7 @@ File: ZE_Macros.h
Description: Header file for ZEngine Macros.
Author(s): James Turk
-$Id: ZE_Macros.h,v 1.2 2002/12/03 04:11:41 cozman Exp $
+$Id: ZE_Macros.h,v 1.3 2002/12/04 23:51:22 cozman Exp $
\file ZE_Macros.h \brief Definition file for ZEngine Macros @@ -29,14 +29,26 @@ $Id: ZE_Macros.h,v 1.2 2002/12/03 04:11:41 cozman Exp $
namespace ZE { +/*! + Safely free an SDL_Surface* and set it to NULL. +**/ #define FreeImage(image) if(image){SDL_FreeSurface(image); image = NULL;} #ifdef USE_SDL_MIXER +/*! + Safely free a Mix_Chunk* and set it to NULL. +**/ #define FreeSound(sound) if(sound){Mix_FreeChunk(sound); sound = NULL;} +/*! + Safely free a Mix_Music* and set it to NULL. +**/ #define FreeMusic(music) if(music){Mix_FreeMusic(music); music = NULL;} #endif #ifdef USE_SDL_TTF +/*! + Safely free a TTF_Font and set it to NULL. +**/ #define FreeFont(font) if(font){TTF_CloseFont(font); font = NULL;} #endif