For tracing purpose, I'd like to print out current function name, like the __FUNCTION__
macro in gcc.
So that when I have a function
func foo () {
trace()
}
it will automatically print out Entering foo()...
or something like that.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…