Migrate to latest project structure

This commit is contained in:
2025-01-03 14:19:54 +01:00
parent b174130490
commit 10a2fccbe2
11 changed files with 421 additions and 98 deletions

19
src/version.cpp Normal file
View File

@ -0,0 +1,19 @@
#include "version.hpp"
#include <sstream>
std::string libscstring_version() {
#include "version.inc"
#include "commit.inc"
std::ostringstream oss;
oss << "libscstring 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();
}