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: currently zero.
23#define TLX_MINOR_VERSION 5
24
25/*[[[perl
26 return "keep" if $ENV{USER} ne "tb";
27 use POSIX qw(strftime);
28 my $date = strftime("%Y%m%d", localtime);
29 print "//! TLX_PATCH_VERSION is the date of the last commit.\n";
30 print "#define TLX_PATCH_VERSION $date\n";
31]]]*/
32//! TLX_PATCH_VERSION is the date of the last commit.
33#define TLX_PATCH_VERSION 20210401
34// [[[end]]]
35
36//! TLX_VERSION is a combination of TLX_MAJOR_VERSION, TLX_MINOR_VERSION, and
37//! TLX_PATCH_VERSION
38#define TLX_VERSION \
39 ((TLX_MAJOR_VERSION * 100lu + TLX_MINOR_VERSION) * 100000000lu \
40 + TLX_PATCH_VERSION)
41
42} // namespace tlx
43
44#endif // !TLX_VERSION_HEADER
45
46/******************************************************************************/