MCPcopy Create free account
hub / github.com/DFHack/dfhack / getCurOS

Function getCurOS

library/include/VersionInfo.h:78–87  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76 };
77
78 static OSType getCurOS() {
79#if defined(_WIN32)
80 const OSType expected = OS_WINDOWS;
81#elif defined(_DARWIN)
82 const OSType expected = OS_APPLE;
83#else
84 const OSType expected = OS_LINUX;
85#endif
86 return expected;
87 }
88
89 uintptr_t getBase () const { return base; };
90 intptr_t getRebaseDelta() const { return rebase_delta; }

Callers 2

ValidateOSFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected