forked from icl-utk-edu/testsweeper
-
Notifications
You must be signed in to change notification settings - Fork 0
/
version.cc
35 lines (29 loc) · 1.09 KB
/
version.cc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Copyright (c) 2017-2023, University of Tennessee. All rights reserved.
// SPDX-License-Identifier: BSD-3-Clause
// This program is free software: you can redistribute it and/or modify it under
// the terms of the BSD 3-Clause license. See the accompanying LICENSE file.
#include "testsweeper.hh"
namespace testsweeper {
//------------------------------------------------------------------------------
/// @return TestSweeper version.
/// Version is integer of form yyyymmrr, where yyyy is year, mm is month,
/// and rr is release counter within month, starting at 00.
///
int version()
{
return TESTSWEEPER_VERSION;
}
// TESTSWEEPER_ID is the Mercurial or git commit hash ID, either
// defined by `hg id` or `git rev-parse --short HEAD` in Makefile,
// or defined here by make_release.py for release tar files. DO NOT EDIT.
#ifndef TESTSWEEPER_ID
#define TESTSWEEPER_ID "unknown"
#endif
//------------------------------------------------------------------------------
/// @return TestSweeper Mercurial or git commit hash ID.
///
const char* id()
{
return TESTSWEEPER_ID;
}
} // namespace testsweeper