#include "version.hpp" #include std::string {PROJECT}_version() { #include "version.inc" #include "commit.inc" std::ostringstream oss; oss << "{PROJECT} version " << version; #ifdef DEBUG oss << " DEBUG"; #endif oss << '\n'; if (commit[0] != '\0') { oss << "build " << commit << ", "; } oss << __DATE__ << ", " << __TIME__ << '\n'; oss << "(c) Bob Polis, all rights reserved"; return oss.str(); }