Fawkes API  Fawkes Development Version
version.h
1 
2 /***************************************************************************
3  * version.h - Fawkes version information
4  *
5  * Created: Fri Aug 07 23:29:09 2009
6  * Copyright 2006-2009 Tim Niemueller [www.niemueller.de]
7  *
8  ****************************************************************************/
9 
10 /* This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * (at your option) any later version. A runtime exception applies to
14  * this software (see LICENSE.GPL_WRE file mentioned below for details).
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU Library General Public License for more details.
20  *
21  * Read the full text in the LICENSE.GPL_WRE file in the doc directory.
22  */
23 
24 #ifndef _CORE_VERSION_H_
25 #define _CORE_VERSION_H_
26 
27 #define FAWKES_VERSION_MAJOR 1
28 #define FAWKES_VERSION_MINOR 3
29 #define FAWKES_VERSION_MICRO 0
30 
31 #define FAWKES_VERSION_GT(major, minor) \
32  ((FAWKES_MAJOR_VERSION > major) \
33  || (FAWKES_MAJOR_VERSION == major) && (FAWKES_MINOR_VERSION > minor))
34 #define FAWKES_VERSION_GE(major, minor) \
35  ((FAWKES_MAJOR_VERSION > major) \
36  || (FAWKES_MAJOR_VERSION == major) && (FAWKES_MINOR_VERSION >= minor))
37 #define FAWKES_VERSION_EQ(major, minor) \
38  ((FAWKES_MAJOR_VERSION == major) && (FAWKES_MINOR_VERSION == minor))
39 #define FAWKES_VERSION_NE(major, minor) \
40  ((FAWKES_MAJOR_VERSION != major) || (FAWKES_MINOR_VERSION != minor))
41 #define FAWKES_VERSION_LE(major, minor) \
42  ((FAWKES_MAJOR_VERSION < major) \
43  || (FAWKES_MAJOR_VERSION == major) && (FAWKES_MINOR_VERSION <= minor))
44 #define FAWKES_VERSION_LT(major, minor) \
45  ((FAWKES_MAJOR_VERSION < major) \
46  || (FAWKES_MAJOR_VERSION == major) && (FAWKES_MINOR_VERSION < minor))
47 
48 #define FAWKES_VERSION_GT_MICRO(major, minor, micro) \
49  ((FAWKES_MAJOR_VERSION > major) \
50  || (FAWKES_MAJOR_VERSION == major) && (FAWKES_MINOR_VERSION > minor) \
51  || (FAWKES_MAJOR_VERSION == major) && (FAWKES_MINOR_VERSION == minor) \
52  && (FAWKES_MICRO_VERSION > minor))
53 
54 #define FAWKES_VERSION_xstr(s) FAWKES_VERSION_str(s)
55 #define FAWKES_VERSION_str(s) #s
56 
57 #define FAWKES_VERSION_STRING \
58  FAWKES_VERSION_xstr(FAWKES_VERSION_MAJOR) "." FAWKES_VERSION_xstr( \
59  FAWKES_VERSION_MINOR) "." FAWKES_VERSION_xstr(FAWKES_VERSION_MICRO)
60 
61 #endif