gdsl
1.8
|
00001 /* 00002 * This file is part of the Generic Data Structures Library (GDSL). 00003 * Copyright (C) 1998-2017 Nicolas Darnis <ndarnis@free.fr>. 00004 * 00005 * GDSL is free software: you can redistribute it and/or modify 00006 * it under the terms of the GNU General Public License as published by 00007 * the Free Software Foundation, either version 3 of the License, or 00008 * (at your option) any later version. 00009 * 00010 * GDSL 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 GDSL. If not, see <http://www.gnu.org/licenses/>. 00017 * 00018 * $RCSfile: gdsl_macros.h,v $ 00019 * $Revision: 1.14 $ 00020 * $Date: 2015/02/17 12:22:57 $ 00021 */ 00022 00023 00024 #ifndef _GDSL_MACROS_H_ 00025 #define _GDSL_MACROS_H_ 00026 00027 00028 #ifdef __cplusplus 00029 extern "C" 00030 { 00031 #endif /* __cplusplus */ 00032 00033 00039 #ifdef GDSL_MAX 00040 #undef GDSL_MAX 00041 #endif 00042 00054 #define GDSL_MAX(X,Y) (X>Y?X:Y) 00055 00056 #ifdef GDSL_MIN 00057 #undef GDSL_MIN 00058 #endif 00059 00071 #define GDSL_MIN(X,Y) (X>Y?Y:X) 00072 00073 00074 /* 00075 * @} 00076 */ 00077 00078 00079 #ifdef __cplusplus 00080 } 00081 #endif /* __cplusplus */ 00082 00083 00084 #endif /* _GDSL_MACROS_H_ */ 00085 00086