02.03.2013, 22:53
Hello,
I'm a little stuck at the moment and am hoping someone could help me get around this. I have the following code:
The code does exactly what I want, so rearranging it to where it outputs different functionality is not an option (unless you have another way to achieve the same results). The problem is that the compiler keeps saying I'm re-defining the macros (each but the first) despite being different in each declaration (as far as I can see). I can understand where it may be saying they are the same, for example:
These are basically the same thing (but that is why they are in that order).
I was hoping someone could give me some pointers on how to avoid these warnings while keeping the result. Note that I do know with these warnings it messes up the actual functionality, but the logic behind it is what I want the same (I'm struggling to find words to describe this appropriately). Unfortunately I cannot simply add tags and then use the _: operator as this won't be used in parameters and I cannot prefix them differently, as there is a chance the macros will run through the same one each time.
Thanks.
I'm a little stuck at the moment and am hoping someone could help me get around this. I have the following code:
pawn Код:
#define SPF&&&|||,||| _
#define SPF&&&%0|||%1[%2],||| SPF&&&~%0s||||||
#define SPF&&&%0|||%1,%2,||| SPF&&&$%0|||%1,%2,|||
#define SPF&&&%0|||%1,||| SPF&&&~%0i||||||
#define SPF&&&$%0|||%1[%2],%3,||| SPF&&&$%0s|||%3,|||
#define SPF&&&$%0|||%1,%2,||| SPF&&&$%0i|||%2,|||
#define SPF&&&$%0|||%1[%2],||| SPF&&&$%0s|||,|||
#define SPF&&&$%0|||,||| %0
#define SPF&&&$%0|||%1,||| SPF&&&$%0i|||,|||
#define SPF&&&~%0|||||| %0
pawn Код:
#define SPF&&&$%0|||,||| %0
#define SPF&&&$%0|||%1,||| SPF&&&$%0i|||,|||
I was hoping someone could give me some pointers on how to avoid these warnings while keeping the result. Note that I do know with these warnings it messes up the actual functionality, but the logic behind it is what I want the same (I'm struggling to find words to describe this appropriately). Unfortunately I cannot simply add tags and then use the _: operator as this won't be used in parameters and I cannot prefix them differently, as there is a chance the macros will run through the same one each time.
Thanks.