02.12.2011, 12:47
Quote:
That's not inefficient code - it compiles to EXACTLY the same thing as if the braces had been ommitted, and is (IMHO) much clearer to read than something all squashed together (as you wrote).
|
pawn Код:
it compiles to EXACTLY the same thing as if the braces had been ommitted, and is (IMHO) much clearer to read than something all squashed together (as you wrote).
pawn Код:
#define while2(%0=%1;%2) %0=%1; while(%2)
main()
{
while2(new i=100; i--)
{
printf("%d",i);
}
}
pawn Код:
#define while2(%0=%1;%2) %0=%1; while(%2)
main()
{
while2(new i=100; i--) printf("%d",i);
}