I\'m using GCC; __FILE__ returns the current source file\'s entire path and name: /path/to/file.cpp. Is there a way to get just the file\'s name file.cpp<
/path/to/file.cpp
file.cpp<
You could use:
bool IsDebugBuild() { return !NDEBUG; }
Or, you could use NDEBUG in your Macro to turn on/off those file paths.