26.08.2012, 19:22
I'm experimenting different methods of loops, for example:
I get loose indentation warning no matter how I write it. Anyone has a clue how to fix? The question is specifically concerning indentation warnings in #defines, nothing else.
pawn Код:
#define loop:(%0)\
{\
new %0, j;\
start:\
%0 = j++;
#define range(%1);\
while(j != %1)\
goto start;\
}
pawn Код:
loop:(i)
printf("%i", i); //Will print: 0 1 2 3 4
range(5);