1
0
mirror of https://github.com/paboyle/Grid.git synced 2025-04-23 04:05:55 +01:00

13 lines
291 B
C++

#include <iostream>
#include <version.h>
namespace Grid {
void printHash(){
#ifdef GITHASH
std::cout << "Current Grid git commit hash=" << GITHASH << std::endl;
#else
std::cout << "Current Grid git commit hash is undefined. Check makefile." << std::endl;
#endif
#undef GITHASH
}
}