11 #if defined(HAVE_UNISTD_H) && defined(HAVE_GETCWD)
15 #if defined(HAVE_STDLIB_H) && defined(HAVE_GETENV)
25 #if defined(HAVE_UNISTD_H) && defined(HAVE_GETCWD)
29 return std::string(path);
40 #if defined(HAVE_STDLIB_H) && defined(HAVE_GETENV)
42 char* path = getenv(
"HOME");
49 assertEqual(SHGetFolderPath(
nullptr, CSIDL_PROFILE,
nullptr, 0, path), S_OK);
50 size_t lenPath = strlen(path);
51 for (
unsigned int i = 0; i < lenPath; i++)
54 return std::string(path);
std::string getCurrentWorkingDirectory()
std::string getHomeDirectory()
#define assertEqual(x, y)