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 0
29
#define FAWKES_VERSION_MICRO 1
30
31
#define FAWKES_VERSION_GT(major, minor) ((FAWKES_MAJOR_VERSION > major) || (FAWKES_MAJOR_VERSION == major) && (FAWKES_MINOR_VERSION > minor))
32
#define FAWKES_VERSION_GE(major, minor) ((FAWKES_MAJOR_VERSION > major) || (FAWKES_MAJOR_VERSION == major) && (FAWKES_MINOR_VERSION >= minor))
33
#define FAWKES_VERSION_EQ(major, minor) ((FAWKES_MAJOR_VERSION == major) && (FAWKES_MINOR_VERSION == minor))
34
#define FAWKES_VERSION_NE(major, minor) ((FAWKES_MAJOR_VERSION != major) || (FAWKES_MINOR_VERSION != minor))
35
#define FAWKES_VERSION_LE(major, minor) ((FAWKES_MAJOR_VERSION < major) || (FAWKES_MAJOR_VERSION == major) && (FAWKES_MINOR_VERSION <= minor))
36
#define FAWKES_VERSION_LT(major, minor) ((FAWKES_MAJOR_VERSION < major) || (FAWKES_MAJOR_VERSION == major) && (FAWKES_MINOR_VERSION < minor))
37
38
#define FAWKES_VERSION_GT_MICRO(major, minor, micro) \
39
((FAWKES_MAJOR_VERSION > major) || \
40
(FAWKES_MAJOR_VERSION == major) && (FAWKES_MINOR_VERSION > minor) || \
41
(FAWKES_MAJOR_VERSION == major) && (FAWKES_MINOR_VERSION == minor) && (FAWKES_MICRO_VERSION > minor))
42
43
#define FAWKES_VERSION_xstr(s) FAWKES_VERSION_str(s)
44
#define FAWKES_VERSION_str(s) #s
45
46
#define FAWKES_VERSION_STRING \
47
FAWKES_VERSION_xstr(FAWKES_VERSION_MAJOR) "." \
48
FAWKES_VERSION_xstr(FAWKES_VERSION_MINOR) "." \
49
FAWKES_VERSION_xstr(FAWKES_VERSION_MICRO)
50
51
#endif
src
libs
core
version.h
Generated by
1.8.13