MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/OpenColorIO / Guard

Method Guard

tests/cpu/Caching_tests.cpp:27–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25struct Guard
26{
27 Guard()
28 : m_envvar(OCIO::OCIO_DISABLE_ALL_CACHES)
29 {
30 OCIO::Platform::Setenv(m_envvar.c_str(), "1");
31 }
32
33 explicit Guard(const char * envvar)
34 : m_envvar(envvar ? envvar : "")

Callers

nothing calls this directly

Calls 1

SetenvFunction · 0.85

Tested by

no test coverage detected