MCPcopy Create free account
hub / github.com/DFHack/dfhack / dfhack_version_desc

Method dfhack_version_desc

library/Core.cpp:300–312  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

298};
299
300std::string DFHack::dfhack_version_desc()
301{
302 std::stringstream s;
303 s << Version::dfhack_version() << " ";
304 if (Version::is_release())
305 s << "(release)";
306 else
307 s << "(git: " << Version::git_commit(true) << ")";
308 s << " on " << (sizeof(void*) == 8 ? "x86_64" : "x86");
309 if (strlen(Version::dfhack_build_id()))
310 s << " [build ID: " << Version::dfhack_build_id() << "]";
311 return s.str();
312}
313
314static bool init_run_script(color_ostream &out, lua_State *state, const std::string_view pcmd, const std::span<const std::string> pargs)
315{

Callers

nothing calls this directly

Calls 5

dfhack_versionFunction · 0.85
is_releaseFunction · 0.85
git_commitFunction · 0.85
dfhack_build_idFunction · 0.85
strMethod · 0.45

Tested by

no test coverage detected