ROOT  6.07/01
Reference Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
version.h
Go to the documentation of this file.
1 /* This file is part of the Vc library.
2 
3  Copyright (C) 2010-2012 Matthias Kretz <kretz@kde.org>
4 
5  Vc is free software: you can redistribute it and/or modify
6  it under the terms of the GNU Lesser General Public License as
7  published by the Free Software Foundation, either version 3 of
8  the License, or (at your option) any later version.
9 
10  Vc is distributed in the hope that it will be useful, but
11  WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public
16  License along with Vc. If not, see <http://www.gnu.org/licenses/>.
17 
18 */
19 
20 #ifndef VC_VERSION_H
21 #define VC_VERSION_H
22 
23 #define VC_VERSION_STRING "0.7.4"
24 #define VC_VERSION_NUMBER 0x000708
25 #define VC_VERSION_CHECK(major, minor, patch) ((major << 16) | (minor << 8) | (patch << 1))
26 #define VC_LIBRARY_ABI_VERSION 3
27 
28 namespace ROOT {
29 namespace Vc
30 {
31  static inline const char *versionString() {
32  return VC_VERSION_STRING;
33  }
34 
35  static inline unsigned int versionNumber() {
36  return VC_VERSION_NUMBER;
37  }
38 
39 #if !defined(VC_NO_VERSION_CHECK) && !defined(VC_COMPILE_LIB)
40  void checkLibraryAbi(unsigned int compileTimeAbi, unsigned int versionNumber, const char *versionString);
41  namespace {
42  static struct runLibraryAbiCheck
43  {
44  runLibraryAbiCheck() {
46  }
47  } _runLibraryAbiCheck;
48  }
49 #endif
50 } // namespace Vc
51 } // namespace ROOT
52 
53 #endif // VC_VERSION_H
static const char * versionString()
Definition: version.h:31
void checkLibraryAbi(unsigned int compileTimeAbi, unsigned int versionNumber, const char *versionString)
Definition: const.cpp:519
#define VC_LIBRARY_ABI_VERSION
Definition: version.h:26
#define VC_VERSION_STRING
Definition: version.h:23
static unsigned int versionNumber()
Definition: version.h:35
#define VC_VERSION_NUMBER
Definition: version.h:24