tlx
Loading...
Searching...
No Matches
version.hpp
Go to the documentation of this file.
1/*******************************************************************************
2 * tlx/version.hpp
3 *
4 * Part of tlx - http://panthema.net/tlx
5 *
6 * Copyright (C) 2018 Timo Bingmann <tb@panthema.net>
7 *
8 * All rights reserved. Published under the Boost Software License, Version 1.0
9 ******************************************************************************/
10
11#ifndef TLX_VERSION_HEADER
12#define TLX_VERSION_HEADER
13
14namespace tlx {
15
16// versions: synchronize with CMakeLists.txt
17
18//! TLX_MAJOR_VERSION is the library interface major version number: currently
19//! zero.
20#define TLX_MAJOR_VERSION 0
21
22//! TLX_MINOR_VERSION is the minor version number.
23#define TLX_MINOR_VERSION 6
24
25//! TLX_PATCH_VERSION is the patch version number.
26#define TLX_PATCH_VERSION 1
27
28/*[[[perl
29 return "keep" if $ENV{USER} ne "tb";
30 use POSIX qw(strftime);
31 my $date = strftime("%Y%m%d", localtime);
32 print "//! TLX_DATE_VERSION is the date of the last commit.\n";
33 print "#define TLX_DATE_VERSION $date\n";
34]]]*/
35//! TLX_DATE_VERSION is the date of the last commit.
36#define TLX_DATE_VERSION 20230523
37// [[[end]]]
38
39//! TLX_VERSION is a combination of TLX_MAJOR_VERSION, TLX_MINOR_VERSION, and
40//! TLX_PATCH_VERSION
41#define TLX_VERSION \
42 ((TLX_MAJOR_VERSION * 100lu + TLX_MINOR_VERSION) * 100000000lu \
43 + TLX_PATCH_VERSION)
44
45} // namespace tlx
46
47#endif // !TLX_VERSION_HEADER
48
49/******************************************************************************/