gdsl
1.8
|
00001 /* 00002 * This file is part of the Generic Data Structures Library (GDSL). 00003 * Copyright (C) 1998-2018 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 00019 /* 00020 * GDSL - Generic Data Structures Library 00021 * $RCSfile: gdsl_macros.h,v $ 00022 * $Revision: 1.14 $ 00023 * $Date: 2015/02/17 12:22:57 $ 00024 */ 00025 00026 00027 #ifndef _GDSL_MACROS_H_ 00028 #define _GDSL_MACROS_H_ 00029 00030 00031 #ifdef __cplusplus 00032 extern "C" 00033 { 00034 #endif /* __cplusplus */ 00035 00042 #ifdef GDSL_MAX 00043 #undef GDSL_MAX 00044 #endif 00045 00057 #define GDSL_MAX(X,Y) (X>Y?X:Y) 00058 00059 #ifdef GDSL_MIN 00060 #undef GDSL_MIN 00061 #endif 00062 00074 #define GDSL_MIN(X,Y) (X>Y?Y:X) 00075 00076 00082 #ifdef __cplusplus 00083 } 00084 #endif /* __cplusplus */ 00085 00086 00087 #endif /* _GDSL_MACROS_H_ */ 00088 00089