core: Declare SYSTEM_PATH_SEP as constexpr

This commit is contained in:
Eduardo Almeida
2022-09-26 10:19:25 +00:00
parent cb96ffb0a8
commit 3544088555

View File

@@ -67,13 +67,12 @@
#endif
/**
* \def SYSTEM_PATH_SEP
* System-specific path separator used between directory names.
*/
#if defined(__WIN32__)
#define SYSTEM_PATH_SEP "\\"
constexpr auto SYSTEM_PATH_SEP = "\\";
#else
#define SYSTEM_PATH_SEP "/"
constexpr auto SYSTEM_PATH_SEP = "/";
#endif
/**