source: trunk/yat/utility/version.h.in @ 1321

Last change on this file since 1321 was 1321, checked in by Peter, 13 years ago

Basically reverting r1319. I was not happy with the macro, so create defines are now placed in version.h instead. version.h is generated by configure from version.h.in. The macro ax_prefix_config_h.m4 will be removed later.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1// @configure_input@
2#ifndef _theplu_yat_utility_version_
3#define _theplu_yat_utility_version_
4
5// $Id: version.h.in 1321 2008-05-23 14:14:41Z peter $
6
7/*
8  Copyright (C) 2008 Peter Johansson
9
10  This file is part of the yat library, http://trac.thep.lu.se/yat
11
12  The yat library is free software; you can redistribute it and/or
13  modify it under the terms of the GNU General Public License as
14  published by the Free Software Foundation; either version 2 of the
15  License, or (at your option) any later version.
16
17  The yat library is distributed in the hope that it will be useful,
18  but WITHOUT ANY WARRANTY; without even the implied warranty of
19  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20  General Public License for more details.
21
22  You should have received a copy of the GNU General Public License
23  along with this program; if not, write to the Free Software
24  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
25  02111-1307, USA.
26*/
27
28///
29/// \file utility/version.h
30///
31
32/*
33  Compile-time version constants
34
35  \see http://apr.apache.org/versioning.html
36*/
37#define YAT_MAJOR_VERSION @YAT_MAJOR_VERSION@
38#define YAT_MINOR_VERSION @YAT_MINOR_VERSION@
39#define YAT_PATCH_VERSION @YAT_PATCH_VERSION@
40#define YAT_VERSION "@VERSION@"
41#define YAT_DEV_BUILD @YAT_DEV_BUILD@
42
43#include <string>
44
45namespace theplu {
46namespace yat {
47namespace utility {
48
49  /**
50     \return major version number of compiled yat library
51   */
52  unsigned int major_version(void);
53
54  /**
55     \return minor version number of compiled yat library
56   */
57  unsigned int minor_version(void);
58
59  /**
60     \return patch version number of compiled yat library
61   */
62  unsigned int patch_version(void);
63
64  /**
65     \return version number of compiled yat library
66   */
67  std::string version(void);
68
69}}} // of namespace utility, yat, and theplu
70
71#endif
Note: See TracBrowser for help on using the repository browser.