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<
Could be done ONLY programmatically.
maybe this is useful...
filename = __FILE__ len = strlen(filename) char *temp = &filename[len -1] while(*temp!= filename) if(*temp == '\') break;