MCPcopy Create free account
hub / github.com/OpenPTrack/open_ptrack_v2 / GetEnv

Function GetEnv

rtpose_wrapper/src/gtest/gtest.h:2702–2714  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2700inline const char* StrError(int errnum) { return strerror(errnum); }
2701#endif
2702inline const char* GetEnv(const char* name) {
2703#if GTEST_OS_WINDOWS_MOBILE
2704 // We are on Windows CE, which has no environment variables.
2705 return NULL;
2706#elif defined(__BORLANDC__) || defined(__SunOS_5_8) || defined(__SunOS_5_9)
2707 // Environment variables which we programmatically clear will be set to the
2708 // empty string rather than unset (NULL). Handle that case.
2709 const char* const env = getenv(name);
2710 return (env != NULL && env[0] != '\0') ? env : NULL;
2711#else
2712 return getenv(name);
2713#endif
2714}
2715
2716#ifdef _MSC_VER
2717# pragma warning(pop) // Restores the warning state.

Callers 7

ShouldUseColorFunction · 0.85
OnTestIterationStartMethod · 0.85
Int32FromEnvOrDieFunction · 0.85
BoolFromGTestEnvFunction · 0.85
Int32FromGTestEnvFunction · 0.85
StringFromGTestEnvFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected