[linux-elitists] Stupid C tricks

Tilghman Lesher zgp-org@the-tilghman.com
Fri Aug 27 19:16:40 PDT 2004

On Friday 27 August 2004 20:46, Jason Spence wrote:
> Something that's been bugging me for a while was the inability to
> have an error reporting macro that automatically outputted the
> filename and line number of the call to the macro, as well as take
> variable arguments in printf(3) format so the programmer could
> provide some information on the state of the program at the time
> the error occured.
> I figured it out a way to get both last month; please let me know
> what you think.
> http://lightconsulting.com/~thalakan/drop/ngdebug.c

I'm missing something.  Why aren't you just using __FILE__, __LINE__,


More information about the linux-elitists mailing list