I think you're right that the func_only being a stack turned out to be more than is needed. An integer should suffice. I originally thought that func_path wouldn't suffice to get the current function, but it turned out not so.

For func_only, I don't think a flag is sufficient (without over-complicating things), but I'll replace func_only with an integer.

Naturally func_path needs to be a stack to indicate the fully-qualified function name.