MCPcopy Create free account
hub / github.com/NVIDIAGameWorks/Falcor / isDevelopmentMode

Function isDevelopmentMode

Source/Falcor/Core/Platform/OS.cpp:96–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94static std::vector<std::filesystem::path> gDataDirectories = getInitialDataDirectories(); // TODO: REMOVEGLOBAL
95
96bool isDevelopmentMode()
97{
98 static bool devMode = []()
99 {
100 auto value = getEnvironmentVariable("FALCOR_DEVMODE");
101 return value && *value == "1";
102 }();
103
104 return devMode;
105}
106
107bool isSamePath(const std::filesystem::path& lhs, const std::filesystem::path& rhs)
108{

Callers 1

Calls 1

getEnvironmentVariableFunction · 0.50

Tested by

no test coverage detected