Is there any way to get a pointer to the current function, maybe through gcc extensions or some other trickery?
Edit I\'m curious whether it is poss
No. In a three-letter answer. In C++ member functions you can have a "this" pointer that does something similar, but there's nothing equivalent in C.
However, since you can't define anonymous functions, there's little need for such a feature.