00001 /* 00002 * This file is part of the Generic Data Structures Library (GDSL). 00003 * Copyright (C) 1998-2004 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.4 $ 00022 * $Date: 2004/10/03 14:35:38 $ 00023 */ 00024 00025 #ifndef _GDSL_MACROS_H_ 00026 #define _GDSL_MACROS_H_ 00027 00028 00029 #ifdef __cplusplus 00030 extern "C" 00031 { 00032 #endif /* __cplusplus */ 00033 00034 00040 #ifdef GDSL_MAX 00041 #undef GDSL_MAX 00042 #endif 00043 00055 #define GDSL_MAX(X,Y) (X>Y?X:Y) 00056 00057 #ifdef GDSL_MIN 00058 #undef GDSL_MIN 00059 #endif 00060 00072 #define GDSL_MIN(X,Y) (X>Y?Y:X) 00073 00074 00075 /* 00076 * @} 00077 */ 00078 00079 00080 #ifdef __cplusplus 00081 } 00082 #endif /* __cplusplus */ 00083 00084 00085 #endif /* _GDSL_MACROS_H_ */ 00086