Debian Codegraph @

cmake/tribits/core/package_arch/Tribits_version_date.h.in

raw
1 /* @REPOSITORY_NAME_UC@_VERSION_DATE
2 *
3 * This macro gives the version date of the @PROJECT_NAME@ git repository at
4 * the time it was configured. It gives the date YYYY-MM-DD and the 2-digit
5 * (24) hour hh of the commit as a 10-digit integer:
6 *
7 * YYYYYMMDDhh
8 *
9 * As long as the branch for the git repo is not hard reset, the first-parent
10 * history should give a monotonically increasing 10-digit integer. This
11 * 10-digit date/time integer YYYYMMDDhh will fit in a signed 32-bit integer
12 * with a maximum value of 2^32 / 2 - 1 = 2147483647. Therefore, the maximum
13 * date that can be handled is the year 2147 with the max date/time of 2147 12
14 * 31 23 = 2147123123. Modern C/C++ compilers (and other implementations of
15 * the C preprocessor) should be able to handle 32-bit integers.
16 *
17 * This header file is meant to be included by downstream codes to determine
18 * the version of @REPOSITORY_NAME@ being used and allows
19 * @REPOSITORY_NAME_UC@_VERSION_DATE to be used in C/C++ ifdefs like:
20 *
21 * #if defined(@REPOSITORY_NAME_UC@_VERSION_DATE) && @REPOSITORY_NAME_UC@_VERSION_DATE >= 2019032704
22 * // The version is newer than 2019-03-27 04:00:00 UTC
23 * ...
24 * #else
25 * // The version is older than 2019-03-27 04:00:00 UTC
26 * ...
27 * #endif
28 *
29 * This allows downstream codes to know the fine-grained version of
30 * @PROJECT_NAME@ at configure and build time to adjust for the addition of
31 * new features, deprecation of code, or breaks in backward compatibility
32 * (which occur in specific commits with unique commit dates).
33 *
34 */
35
36 @REPOSITORY_VERSION_DATE_MACRO_DEF@