[LUGOS-PROG] C debug funkcija

David Klasinc bigwhale at lubica.net
Sat Aug 31 19:57:09 CEST 2002


On Thursday 22 August 2002 19:57, you wrote:

> #define PREFIX "%s: %s: %d: "
> #define DEBUG(fmt, args...)  printf(" * DEBUG: " PREFIX fmt "\n", \
>        __func__, __FILE__, __LINE__, ## args)
>
> Tole nej bi blo po C99 standardu
>
> torej DEBUG("Message"); ...

Nekaj takega sem probaval narediti na HP-UXu... Pa mi ni uspelo... Compilerju 
se je zrolalo pri drugem define-u... ;)

--
David!



More information about the lugos-prog mailing list