Try using the stringizing operator
#define PRNVARIABLE(a, b) cout << #a << " = " << a;
void main()
{
PRNVARIABLE(a, a)
}
what the stringizing operator does it just prints out what you type in as a string.
void main()
{
PRNVARIABLE(5 * 5, b)
}
would print 5 * 5 = (whatever b is)
Ryan