Any ideas why it's impossible to compile that simple code?
#define AB_VALUES 2,3 #define Add(a,b) a+b void main(void) { int c; c = Add (AB_VALUES); }
"get the compiler to generate a preprocessor output file (*.i)." Hey! - there you go nicking my Top Tips again: http://www.8052.com/forum/read.phtml?id=29152 BTW: the preprocessor output file (*.i) is still a valid 'C' source file; therefore I always add *.i to the list of 'C' source filetypes for my uVision Projects - so then I can view them with syntax colouring! And even compile them, if I want...