MCPcopy Create free account
hub / github.com/FastFlowLM/FastFlowLM / version_check_disabled

Function version_check_disabled

src/include/update.hpp:61–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59static bool g_vercheck_warned_timeout = false;
60
61static bool version_check_disabled() {
62 const char* env = std::getenv("FLM_DISABLE_UPDATE_CHECK");
63 if (!env) return false;
64
65 std::string value(env);
66 std::transform(value.begin(), value.end(), value.begin(), [](unsigned char c) {
67 return static_cast<char>(std::tolower(c));
68 });
69 return value == "1" || value == "true" || value == "yes" || value == "on";
70}
71
72#ifdef _WIN32
73

Callers 1

Calls 3

transformFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected