[ LUGOS-PROG ] Debagiranje - vprasanje???

Matej Spiller Matej.Spiller at guest.arnes.si
Thu Jun 14 12:01:09 CEST 2001


uporabi nekako takole:
#if DEBUG
  #define Dbgprintf(char *st)  printf ("test: %s\n",st);
#elif
  #define Dbgprintf(char *st)
#endif

potem pa klices funkcijo normalno...


----- Original Message ----- 
From: "Blaz Antonic" <blaz.antonic at havn.com>
To: <lugos-prog at lugos.si>
Sent: Thursday, June 14, 2001 7:18 PM
Subject: Re: [ LUGOS-PROG ] Debagiranje - vprasanje???


> > HeHe ... saj bi, samo nimam dostopa do linux masine za enkrat, rabim pa
> > zdaj...:)
> 
> A to funkcijo pogosto klices ? Ce je no, bi lahko brez pretirane izgube
> preglednosti tvoje #ifdef DEBUG in #endife postavil naokrog klicov tvoje
> funkcije, ne v funkcijo samo. Source bo sicer malce daljsi, ampak to
> nima veze ko je enkrat prevedeno (binary bo enako dolg kot prej ali
> kvecjemu krajsi, to je pa tvoj namen, a ne ?).
> 
> Blaz Antonic
> 
> 




More information about the lugos-prog mailing list