#define in (...)
Rok Papež
rok.papez at kiss.uni-lj.si
Wed May 30 21:20:22 CEST 2001
Živjo!
V nekem programu imam en kup
#ifdef DEBUG
if(debeg > 5)
printf("Neki je slo recimo narobe %d", xy);
#endif
#ifdef DEBUG
if (debug > 10)
printf("Blahblah yadayada %s, %d, %s",string1,int1,string2);
#endif
Kako bi se dalo to nepregledno #ifdef kolobocijo po domace
receno "likvidirati" ?
Najraje bi definirial nekaj v smislu:
#ifdef DEBUG
printf_debug(level, ...) if(debug>level) printf(...)
#else
printf_debug(levle, ...)
#endif
vendar mi ne gre od tipk :-(.
--
best regards,
Rok Papež.
More information about the lugos-prog
mailing list