Subject: Re: kernel panic messages
To: NetBSD Kernel Technical Discussion List <tech-kern@netbsd.org>
From: Wolfgang Solfrank <ws@tools.de>
List: tech-kern
Date: 05/06/2003 18:02:35
Hi,

 > I used to do error messages like that until I got fed up of typing all
 > those parens.  These days I prefer something like this...
...
 > #define panic	(_panic_file= __FILE__, _panic_line= __LINE__, _panic)

Why not use this comma expression trick with a call to another function
within the parens, i.e. something like:

#define	panic	(_panic_pos(__FILE__, __LINE__), _panic)

with an appropriate definition for the function _panic_pos?

Ciao,
Wolfgang
-- 
ws@TooLs.DE	Wolfgang Solfrank, TooLs GmbH	+49-228-985800