]>
Commit | Line | Data |
---|---|---|
f22341db | 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.6.70-dev" | |
24 | #define VC_VERSION_NUMBER 0x00068d | |
25 | #define VC_VERSION_CHECK(major, minor, patch) ((major << 16) | (minor << 8) | (patch << 1)) | |
26 | #define VC_LIBRARY_ABI_VERSION 1 | |
27 | ||
28 | namespace Vc | |
29 | { | |
30 | static inline const char *versionString() { | |
31 | return VC_VERSION_STRING; | |
32 | } | |
33 | ||
34 | static inline unsigned int versionNumber() { | |
35 | return VC_VERSION_NUMBER; | |
36 | } | |
37 | ||
38 | #if !defined(VC_NO_VERSION_CHECK) && !defined(VC_COMPILE_LIB) | |
39 | void checkLibraryAbi(unsigned int compileTimeAbi, unsigned int versionNumber, const char *versionString); | |
40 | namespace { | |
41 | static struct runLibraryAbiCheck | |
42 | { | |
43 | runLibraryAbiCheck() { | |
44 | checkLibraryAbi(VC_LIBRARY_ABI_VERSION, VC_VERSION_NUMBER, VC_VERSION_STRING); | |
45 | } | |
46 | } _runLibraryAbiCheck; | |
47 | } | |
48 | #endif | |
49 | } // namespace Vc | |
50 | ||
51 | #endif // VC_VERSION_H |