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

Function getenv

sources/instance/type_ext.cpp:2158–2164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2156 }
2157
2158 string getenv(const string &name)
2159 {
2160 const char *str = std::getenv(name.c_str());
2161 if (str == nullptr)
2162 throw lang_error("Environment variable \"" + name + "\" is not exist.");
2163 return str;
2164 }
2165
2166 void exit(const numeric &exit_code)
2167 {

Callers 2

get_sdk_pathFunction · 0.85
get_import_pathFunction · 0.85

Calls 1

lang_errorClass · 0.85

Tested by

no test coverage detected