#define foo(x) for(int i=0; i
Well, I thought that would work as "expected", but apparently not. If you do the following:
int i = 42;foo(i);
You'll never end up with blah() getting called, because the preprocessor will expand the macro to:
int i = 42;for(int i=0; i
Oh well. That's what I get for using macros I guess...
So like this:
If I word it differently, isn't the i in the for-loop not a different i than outside the for-loop?
Or are we talking about (ANSI) C here?
In which case it should say something about not allowing variable declarations there.