I would like to write a function :
inline char separator() { /* SOMETHING */ }
that returns the file separator of the system in standar
I'm not sure how to do it other than by checking ifdefs
inline char separator() { #ifdef _WIN32 return '\\'; #else return '/'; #endif }
or (as suggested by PaperBirdMaster)
const char kPathSeparator = #ifdef _WIN32 '\\'; #else '/'; #endif