Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move path constants to their own header
- Loading branch information
Showing
5 changed files
with
116 additions
and
172 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
|
||
// Data directories | ||
|
||
namespace fs { | ||
|
||
#define ARX_GET_STR(str) (((str)[0] != '\0') ? (str) : NULL) | ||
|
||
typedef const char * const str_t; | ||
|
||
static str_t data_dir = ARX_GET_STR("${DATA_DIR}"); | ||
|
||
static str_t user_dir = ARX_GET_STR("${USER_DIR}"); | ||
|
||
static str_t config_dir = ARX_GET_STR("${CONFIG_DIR}"); | ||
|
||
static str_t data_dir_prefixes = ARX_GET_STR("${DATA_DIR_PREFIXES}"); | ||
|
||
static str_t user_dir_prefixes = ARX_GET_STR("${USER_DIR_PREFIXES}"); | ||
|
||
static str_t config_dir_prefixes = ARX_GET_STR("${CONFIG_DIR_PREFIXES}"); | ||
|
||
static str_t libexec_dir = ARX_GET_STR("${CMAKE_INSTALL_FULL_LIBEXECDIR}"); | ||
|
||
#undef ARX_GET_STR | ||
|
||
} // namespace fs |
Oops, something went wrong.