Custom printf
#4

pawn Код:
#define DEBUG
pawn Код:
#if defined DEBUG
    #define debug(%1) printf(%1)
#else
    stock asd() { }
    #define debug(%1) asd()
#endif
Use debug() as printf() and when you don't want the debug messages coming up, simply comment out #define DEBUG.
Reply


Messages In This Thread
Custom printf - by Tr1viUm - 03.12.2009, 16:24
Re: Custom printf - by Correlli - 03.12.2009, 16:28
Re: Custom printf - by Tr1viUm - 03.12.2009, 16:51
Re: Custom printf - by Finn - 03.12.2009, 17:01
Re: Custom printf - by Tr1viUm - 03.12.2009, 17:12
Re: Custom printf - by MenaceX^ - 03.12.2009, 17:24
Re: Custom printf - by Tr1viUm - 03.12.2009, 17:44
Re: Custom printf - by Correlli - 03.12.2009, 17:46

Forum Jump:


Users browsing this thread: 1 Guest(s)