|
|
@@ -12,17 +12,17 @@ namespace crown
|
|
|
{
|
|
|
/// @defgroup Path Path
|
|
|
|
|
|
+#if CROWN_PLATFORM_POSIX
|
|
|
+ const char PATH_SEPARATOR = '/';
|
|
|
+#elif CROWN_PLATFORM_WINDOWS
|
|
|
+ const char PATH_SEPARATOR = '\\';
|
|
|
+#endif // CROWN_PLATFORM_POSIX
|
|
|
+
|
|
|
/// Functions for operating on strings as file paths.
|
|
|
///
|
|
|
/// @ingroup Path
|
|
|
namespace path
|
|
|
{
|
|
|
-#if CROWN_PLATFORM_POSIX
|
|
|
- const char SEPARATOR = '/';
|
|
|
-#elif CROWN_PLATFORM_WINDOWS
|
|
|
- const char SEPARATOR = '\\';
|
|
|
-#endif // CROWN_PLATFORM_POSIX
|
|
|
-
|
|
|
/// Returns whether the @a path is absolute.
|
|
|
bool is_absolute_path(const char* path);
|
|
|
|