Skip to content

Commit c8969e9

Browse files
committed
print current dsga version number when running test runner
1 parent efb1031 commit c8969e9

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/main.cxx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
//#include "nanobench.h"
88
#include "dsga.hxx"
9+
#include <iostream>
10+
#include <format>
911

1012
//
1113
//
@@ -15,6 +17,11 @@
1517
//
1618
//
1719

20+
// print current version number
21+
void print_dsga_version()
22+
{
23+
std::cout << std::format("\ndsga version: v{}.{}.{}\n\n", DSGA_MAJOR_VERSION, DSGA_MINOR_VERSION, DSGA_PATCH_VERSION);
24+
}
1825

1926
// this function is a place to just test out whatever
2027
void sandbox_function()
@@ -33,6 +40,8 @@ void sandbox_function()
3340

3441
int main(int argc, char *argv[])
3542
{
43+
print_dsga_version();
44+
3645
sandbox_function();
3746

3847

0 commit comments

Comments
 (0)