25 #if defined(ION_PLATFORM_WINDOWS)
26 #undef GetEnvironmentVariable
30 char* var = getenv(name.c_str());
31 return var ? var : std::string();
35 const std::string&
value) {
36 #if defined(ION_PLATFORM_WINDOWS)
37 const std::string env = name +
"=" +
value;
40 setenv(name.c_str(), value.c_str(), 1);
const std::string GetEnvironmentVariableValue(const std::string &name)
Returns the value of the named environment variable.
void SetEnvironmentVariableValue(const std::string &name, const std::string &value)
Sets the named environment variable to the passed value.