SA-MP Forums Archive
Compiler Bug? #define with < > or ( ) - 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: Compiler Bug? #define with < > or ( ) (/showthread.php?tid=574103)



Compiler Bug? #define with < > or ( ) - Yashas - 13.05.2015

Код:
#define Crap<A> CrapA
#define Crap<B> CrapB
It happens with ( ) too.

warning 201: redefinition of constant/macro (symbol "Crap<A>") for Crap<B> define

Where am I going wrong?

Compiler Bug?

EDIT:the example I gave may be misleading

I am sorry for giving bad example :P
Код:
#define SQL<int>::iterator new literator:
#define SQL<float>::iterator new literator:
#define SQL<float[]>::iterator new literator:
#define SQL<int[]>::iterator new literator:
#define SQL<*>::iterator new literator:



Re: Compiler Bug? #define with < > or ( ) - JaydenJason - 13.05.2015

#define Crap<%0> Crap%0

?


Re: Compiler Bug? #define with < > or ( ) - Yashas - 13.05.2015

I am sorry for giving bad example :P
Код:
#define SQL<int>::iterator new literator:
#define SQL<float>::iterator new literator:
#define SQL<float[]>::iterator new literator:
#define SQL<int[]>::iterator new literator:
#define SQL<*>::iterator new literator: