gdsl_macros.h

Go to the documentation of this file.
00001 /*
00002  * This file is part of the Generic Data Structures Library (GDSL).
00003  * Copyright (C) 1998-2006 Nicolas Darnis <ndarnis@free.fr>.
00004  *
00005  * The GDSL library is free software; you can redistribute it and/or 
00006  * modify it under the terms of the GNU General Public License as 
00007  * published by the Free Software Foundation; either version 2 of
00008  * the License, or (at your option) any later version.
00009  *
00010  * The GDSL library is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU General Public License
00016  * along with the GDSL library; see the file COPYING.
00017  * If not, write to the Free Software Foundation, Inc., 
00018  * 59 Temple Place, Suite 330, Boston, MA  02111-1307, USA.
00019  *
00020  * $RCSfile: gdsl__macros_8h-source.html,v $
00021  * $Revision: 1.10 $
00022  * $Date: 2006/06/22 09:16:01 $
00023  */
00024 
00025 
00026 #ifndef _GDSL_MACROS_H_
00027 #define _GDSL_MACROS_H_
00028 
00029 
00030 #ifdef __cplusplus
00031 extern "C" 
00032 {
00033 #endif /* __cplusplus */
00034 
00035 
00041 #ifdef GDSL_MAX
00042 #undef GDSL_MAX
00043 #endif
00044 
00056 #define GDSL_MAX(X,Y) (X>Y?X:Y)
00057 
00058 #ifdef GDSL_MIN
00059 #undef GDSL_MIN
00060 #endif
00061 
00073 #define GDSL_MIN(X,Y) (X>Y?Y:X)
00074 
00075 
00076 /*
00077  * @}
00078  */
00079 
00080 
00081 #ifdef __cplusplus
00082 }
00083 #endif /* __cplusplus */
00084 
00085 
00086 #endif /* _GDSL_MACROS_H_ */
00087 
00088 

Generated on Thu Jun 22 11:15:30 2006 for gdsl by  doxygen 1.4.6