I have a situation like this
#define PRE 0xF1
#define SR0 0B0000
#define SR1 0B0001
#define SR2 0B0010
#define SR3 0B0011
#define VIOTA(A0) asm(".byte PRE, A0")
int main()
{
VIOTA(SR1);
return 0;
}
I have a top-level macro that expands out however the expansion contains more macros. These aren't being expanded and causing some problems.
The behaviour that I desire is that the end expansion is
asm(".byte 0xF1, 0B0000")
Here the inner macros have been expanded. I'm really not sure what I'm doing wrong at all. Any advice?