xentara-utils v2.0.4
The Xentara Utility Library
Loading...
Searching...
No Matches
Export Macros

Macros

#define XENTARA_PATH_LITERAL
 Prefix for native path string literals.
 
#define XENTARA_PATH_SEPARATOR
 Separator for path string literals.
 

Detailed Description

Macro Definition Documentation

◆ XENTARA_PATH_LITERAL

#define XENTARA_PATH_LITERAL

Prefix for native path string literals.

This preprocessor macro can be used to prefix a string literal to make it the correct native type used by with std::filesystem::path. It evaluates to L"" under Windows, and to "" under Posix.

You can use the macro like this:

constexpr auto myFileName = XENTARA_PATH_LITERAL "myFile.txt"sv;
#define XENTARA_PATH_LITERAL
Prefix for native path string literals.
Definition path.hpp:59

◆ XENTARA_PATH_SEPARATOR

#define XENTARA_PATH_SEPARATOR

Separator for path string literals.

This preprocessor macro can be used to insert a separator into a path literal. It evaluates to "\\" under Windows, and to "/" under Posix.

You can use the macro like this:

constexpr auto myFileName = XENTARA_PATH_LITERAL "myDirectory" XENTARA_PATH_SEPARATOR "myFile.txt"sv;
#define XENTARA_PATH_SEPARATOR
Separator for path string literals.
Definition path.hpp:79