| 298 | }; |
| 299 | |
| 300 | std::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 | |
| 314 | static bool init_run_script(color_ostream &out, lua_State *state, const std::string_view pcmd, const std::span<const std::string> pargs) |
| 315 | { |
nothing calls this directly
no test coverage detected