Fawkes API
Fawkes Development Version
|
00001 00002 /*************************************************************************** 00003 * version.h - Fawkes version information 00004 * 00005 * Created: Fri Aug 07 23:29:09 2009 00006 * Copyright 2006-2009 Tim Niemueller [www.niemueller.de] 00007 * 00008 ****************************************************************************/ 00009 00010 /* This program is free software; you can redistribute it and/or modify 00011 * it under the terms of the GNU General Public License as published by 00012 * the Free Software Foundation; either version 2 of the License, or 00013 * (at your option) any later version. A runtime exception applies to 00014 * this software (see LICENSE.GPL_WRE file mentioned below for details). 00015 * 00016 * This program is distributed in the hope that it will be useful, 00017 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00019 * GNU Library General Public License for more details. 00020 * 00021 * Read the full text in the LICENSE.GPL_WRE file in the doc directory. 00022 */ 00023 00024 #ifndef __CORE_VERSION_H_ 00025 #define __CORE_VERSION_H_ 00026 00027 #define FAWKES_VERSION_MAJOR 0 00028 #define FAWKES_VERSION_MINOR 5 00029 #define FAWKES_VERSION_MICRO 0 00030 00031 #define FAWKES_VERSION_GT(major, minor) ((FAWKES_MAJOR_VERSION > major) || (FAWKES_MAJOR_VERSION == major) && (FAWKES_MINOR_VERSION > minor)) 00032 #define FAWKES_VERSION_GE(major, minor) ((FAWKES_MAJOR_VERSION > major) || (FAWKES_MAJOR_VERSION == major) && (FAWKES_MINOR_VERSION >= minor)) 00033 #define FAWKES_VERSION_EQ(major, minor) ((FAWKES_MAJOR_VERSION == major) && (FAWKES_MINOR_VERSION == minor)) 00034 #define FAWKES_VERSION_NE(major, minor) ((FAWKES_MAJOR_VERSION != major) || (FAWKES_MINOR_VERSION != minor)) 00035 #define FAWKES_VERSION_LE(major, minor) ((FAWKES_MAJOR_VERSION < major) || (FAWKES_MAJOR_VERSION == major) && (FAWKES_MINOR_VERSION <= minor)) 00036 #define FAWKES_VERSION_LT(major, minor) ((FAWKES_MAJOR_VERSION < major) || (FAWKES_MAJOR_VERSION == major) && (FAWKES_MINOR_VERSION < minor)) 00037 00038 #define FAWKES_VERSION_GT_MICRO(major, minor, micro) \ 00039 ((FAWKES_MAJOR_VERSION > major) || \ 00040 (FAWKES_MAJOR_VERSION == major) && (FAWKES_MINOR_VERSION > minor) || \ 00041 (FAWKES_MAJOR_VERSION == major) && (FAWKES_MINOR_VERSION == minor) && (FAWKES_MICRO_VERSION > minor)) 00042 00043 #define FAWKES_VERSION_xstr(s) FAWKES_VERSION_str(s) 00044 #define FAWKES_VERSION_str(s) #s 00045 00046 #define FAWKES_VERSION_STRING \ 00047 FAWKES_VERSION_xstr(FAWKES_VERSION_MAJOR) "." \ 00048 FAWKES_VERSION_xstr(FAWKES_VERSION_MINOR) "." \ 00049 FAWKES_VERSION_xstr(FAWKES_VERSION_MICRO) 00050 00051 #endif