mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-17 17:32:45 +01:00
Codechange: introduce GetEnv that returns optional based on std::getenv
This commit is contained in:
@@ -167,4 +167,6 @@ inline bool IsWhitespace(char32_t c)
|
||||
#include <sys/param.h>
|
||||
#endif
|
||||
|
||||
std::optional<std::string_view> GetEnv(const char *variable);
|
||||
|
||||
#endif /* STRING_FUNC_H */
|
||||
|
||||
Reference in New Issue
Block a user