Does caller() appeal to you in this case?
ps. I don't know much about C, so this is just a guess.
Update: caller() won't print out the var & contents inherently, but it does of course produce a stack trace.
In reply to Re: How to get variable name in trace message
by stevieb
in thread How to get variable name in trace message
by ChrisBeall
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |