I want to have an error message that prints the variable name, and its current value.
so far I have:
1 2 3 4 5 6 7
#define describe(a, b) cout << "param_a = " << a << " and param_b = " << b << endl
//some code goes here
//and then later
int x = 5, y = 6;
#define param_a a
#define param_b b
describe(x, y);
But I was reading that macros when encounted expand any macros withim them. So why isn't param_a and param_b being expanded? Just because they're inside quotations?