SA-MP Forums Archive
Get rid of loose indentation warning in a #define? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Get rid of loose indentation warning in a #define? (/showthread.php?tid=372504)



Get rid of loose indentation warning in a #define? - Youarex - 26.08.2012

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.


Re: Get rid of loose indentation warning in a #define? - fiki574 - 26.08.2012

pawn Код:
#pragma tabsize 0



Re: Get rid of loose indentation warning in a #define? - Youarex - 26.08.2012

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


Re: Get rid of loose indentation warning in a #define? - fiki574 - 26.08.2012

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

You're welcome!