isused function? O.o
#1

I never found a function : isused.

Maybe someone can make one / found one?

Example:

Код:
new VERIABLE;

#if !isused VERIABLE
#pragma unused VERIABLE
#endif
Reply
#2

The pawn compiler will tell you if a symbol is unused, than you can add #pragma unused
To check undefined symbols
pawn Код:
#if !defined xxx
      #define xxx
Reply
#3

Quote:
Originally Posted by $t3ve
Посмотреть сообщение
Код:
new VERIABLE;

#if !isused VERIABLE
#pragma unused VERIABLE
#endif
It's Variable
Reply
#4

pawn Код:
new variable = -1;
// entire gamemode
if(variable == -1)
{
    #pragma unused variable
}
Just an idea, i wont and can't test it on my Mac right now xD
Reply
#5

Well, thanks for (trying) to help me , but it would be a very useful function.
My gamemode is not very optimized (with veriables) and if I remove some things, I hate that: Symbol has been never used: ...
Reply
#6

pawn Код:
#pragma unused variable
Reply
#7

Quote:
Originally Posted by [03]Garsino
Посмотреть сообщение
pawn Код:
#pragma unused variable
Yea I know but I hate it to type that every f****** time.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)