| 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 | { |
no test coverage detected