11.11.2009, 19:06
Hi,
There is a bug in #define, or it's a limitation, and i'm desperately searching for a workaround but i believe there isn't..
EXEMPLE:
So this bug appear when using parenthesis in a "fake string", which is a bit annoying for what i need to do.
Any idea?
There is a bug in #define, or it's a limitation, and i'm desperately searching for a workaround but i believe there isn't..
EXEMPLE:
pawn Код:
#include a_samp
#define PRINT(%1) print(#%1)
public OnFilterScriptInit()
{
PRINT("blabla"); //work, prints "blabla"
PRINT(blabla); //work, prints "blabla"
PRINT(bla[3]); //work, prints "bla[3]"
PRINT("bla(3)"); //work, prints "bla(3)"
PRINT(bla(3)); //don't work, weird errors when compiling
}
Any idea?