Get rid of loose indentation warning in a #define?
#1

I'm experimenting different methods of loops, for example:

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);
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.
Reply
#2

pawn Код:
#pragma tabsize 0
Reply
#3

Quote:
Originally Posted by fiki574_CRO
Посмотреть сообщение
pawn Код:
#pragma tabsize 0
Oh, so simple. Thanks.
Reply
#4

Quote:
Originally Posted by YouareX
Посмотреть сообщение
Oh, so simple. Thanks.
Yep!

You're welcome!
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)