MCPcopy Create free account
hub / github.com/covscript/covscript / get_sdk_path

Function get_sdk_path

sources/covscript.cpp:259–273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

257#ifdef COVSCRIPT_PLATFORM_WIN32
258
259 std::string get_sdk_path()
260 {
261#ifdef COVSCRIPT_HOME
262 return COVSCRIPT_HOME;
263#else
264 const char *sdk_path = std::getenv("COVSCRIPT_HOME");
265 if (sdk_path == nullptr) {
266 CHAR path[MAX_PATH];
267 SHGetFolderPathA(nullptr, CSIDL_PERSONAL, nullptr, SHGFP_TYPE_CURRENT, path);
268 return process_path(std::string(path) + "\\CovScript");
269 }
270 else
271 return process_path(sdk_path);
272#endif
273 }
274
275#else
276

Callers 1

get_import_pathFunction · 0.85

Calls 2

getenvFunction · 0.85
process_pathFunction · 0.85

Tested by

no test coverage detected