zengine/doc/html/ZE__Macros_8h-source.html
2002-12-12 04:41:59 +00:00

52 lines
3.5 KiB
HTML
Executable File

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>include/ZE_Macros.h Source File</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.3-rc1 -->
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="namespaces.html">Namespace List</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="annotated.html">Compound List</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="namespacemembers.html">Namespace Members</a> &nbsp; <a class="qindex" href="functions.html">Compound Members</a> &nbsp; <a class="qindex" href="globals.html">File Members</a> &nbsp; </center>
<hr><h1>include/ZE_Macros.h</h1><a href="ZE__Macros_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">/*******************************************************************************</span>
00002 <span class="comment"> This file is Part of the ZEngine Library for SDL Game Development.</span>
00003 <span class="comment"> Copyright (C) 2002 ConceptOfZero.net</span>
00004 <span class="comment"></span>
00005 <span class="comment"> Licensed under the BSD License, see licensing.txt.</span>
00006 <span class="comment"></span>
00007 <span class="comment"> The maintainer of this library is James Turk (jturk@conceptofzero.net) </span>
00008 <span class="comment"> and the home of this Library is http://www.conceptofzero.net/</span>
00009 <span class="comment">*******************************************************************************/</span>
00010
00024 <span class="preprocessor">#ifndef __ze_macros_h__</span>
00025 <span class="preprocessor"></span><span class="preprocessor">#define __ze_macros_h__</span>
00026 <span class="preprocessor"></span>
00027 <span class="preprocessor">#include "<a class="code" href="ZE__Includes_8h.html">ZE_Includes.h</a>"</span>
00028
00029 <span class="keyword">namespace </span>ZE
00030 {
00031
00035 <span class="preprocessor">#define FreeImage(image) if(image){SDL_FreeSurface(image); image = NULL;}</span>
00036 <span class="preprocessor"></span>
00037 <span class="preprocessor">#ifdef USE_SDL_MIXER</span>
00038 <span class="preprocessor"></span>
00041 <span class="preprocessor">#define FreeSound(sound) if(sound){Mix_FreeChunk(sound); sound = NULL;}</span>
00042 <span class="preprocessor"></span>
00045 <span class="preprocessor">#define FreeMusic(music) if(music){Mix_FreeMusic(music); music = NULL;}</span>
00046 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
00047 <span class="preprocessor"></span>
00048 <span class="preprocessor">#ifdef USE_SDL_TTF</span>
00049 <span class="preprocessor"></span>
00052 <span class="preprocessor">#define FreeFont(font) if(font){TTF_CloseFont(font); font = NULL;}</span>
00053 <span class="preprocessor"></span><span class="preprocessor">#endif</span>
00054 <span class="preprocessor"></span>
00055
00056 }
00057
00058 <span class="preprocessor">#endif //__ze_macros_h__</span>
00059 <span class="preprocessor"></span>
</pre></div><hr><address style="align: right;"><small>Generated on Wed Dec 11 23:42:26 2002 for ZEngine by
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border=0
width=110 height=53></a>1.3-rc1 </small></address>
</body>
</html>