diff options
Diffstat (limited to 'src/common/cbasetypes.h')
-rw-r--r-- | src/common/cbasetypes.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/common/cbasetypes.h b/src/common/cbasetypes.h index 62cb8fe21..731a8b578 100644 --- a/src/common/cbasetypes.h +++ b/src/common/cbasetypes.h @@ -307,10 +307,14 @@ typedef char bool; #if defined(WIN32) #define PATHSEP '\\' +#define PATHSEP_STR "\\" #elif defined(__APPLE__) +// FIXME Mac OS X is unix based, is this still correct? #define PATHSEP ':' +#define PATHSEP_STR ":" #else #define PATHSEP '/' +#define PATHSEP_STR "/" #endif ////////////////////////////////////////////////////////////////////////// @@ -366,6 +370,16 @@ typedef char bool; ////////////////////////////////////////////////////////////////////////// +// Use the preprocessor to 'stringify' stuff (concert to a string). +// example: +// #define TESTE blabla +// QUOTE(TESTE) -> "TESTE" +// EXPAND_AND_QUOTE(TESTE) -> "blabla" +#define QUOTE(x) #x +#define EXPAND_AND_QUOTE(x) QUOTE(x) + + +////////////////////////////////////////////////////////////////////////// // Set a pointer variable to a pointer value. #ifdef __cplusplus template <typename T1, typename T2> |