For some debugging info I need __FILE__, but the problem is, it shows also the full pathname. I rather don't want to do some stringmanipulation to cut off only the source name. So is there another way to get the current filename without calling a function (a MACRO is ofcourse much faster)? Maybe a setting to GCC...?
I googled and found someone says in *nix systems __FILE__ shows only the filename, while DOS shows the complete path, I guess he was mistaken.