MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ safe_getenv()

std::string MayaFlux::Platform::safe_getenv ( const char *  var)

Definition at line 38 of file HostEnvironment.cpp.

39{
40#ifdef MAYAFLUX_PLATFORM_WINDOWS
41 char* value = nullptr;
42 size_t len = 0;
43 if (_dupenv_s(&value, &len, var) == 0 && value != nullptr) {
44 std::string result(value);
45 free(value);
46 return result;
47 }
48 return "";
49#else
50 const char* value = std::getenv(var);
51 return value ? std::string(value) : "";
52#endif
53}
glm::vec3 value

References value.

Referenced by MayaFlux::Platform::SystemConfig::get_unix_library_paths().

+ Here is the caller graph for this function: