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

/include/ZE_Macros.h File Reference


Detailed Description

File Header:
File: ZE_Macros.h
Description: Header file for ZEngine Macros.
Author(s): James Turk
Id
ZE_Macros.h,v 1.4 2002/12/29 06:50:19 cozman Exp

Definition file for ZEngine Macros which are used throughout the engine.

#include "ZE_Includes.h"

Go to the source code of this file.

Namespaces

namespace  ZE

Defines

#define FreeImage(image)   if(image){SDL_FreeSurface(image); image = NULL;}
#define FreeSound(sound)   if(sound){Mix_FreeChunk(sound); sound = NULL;}
#define FreeMusic(music)   if(music){Mix_FreeMusic(music); music = NULL;}
#define FreeFont(font)   if(font){TTF_CloseFont(font); font = NULL;}


Define Documentation

#define FreeImage image       if(image){SDL_FreeSurface(image); image = NULL;}
 

Safely free an SDL_Surface* and set it to NULL.

#define FreeSound sound       if(sound){Mix_FreeChunk(sound); sound = NULL;}
 

Safely free a Mix_Chunk* and set it to NULL.

#define FreeMusic music       if(music){Mix_FreeMusic(music); music = NULL;}
 

Safely free a Mix_Music* and set it to NULL.

#define FreeFont font       if(font){TTF_CloseFont(font); font = NULL;}
 

Safely free a TTF_Font and set it to NULL.


Generated on Sun Dec 29 02:21:35 2002 for ZEngine by doxygen1.3-rc2