[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Patches #219 - #224
From: |
Pawel Kot |
Subject: |
Re: Patches #219 - #224 |
Date: |
Tue, 9 Apr 2002 23:14:32 +0200 (CEST) |
On Mon, 8 Apr 2002, Pavel Machek wrote:
> Hi!
>
> > > #224:
> > > +# define dump while(0)
> > > +# define dprintf while(0)
> > >
> > > Are you sure that syntax is correct?
> >
> > According to me and a co-worker that used to be in compiler design, yes it
> > is.
> >
> > What happens:
> > dprintf( "some format string: %s %d\n", s, n );
> > gets translated to:
> > while(0);
>
> AFAICS it will translate to
>
> while(0)( "some format string" );
>
> That can't be right...
That's what I thought. But as it seems to work with VC++ it can be done.
It doesn't hurt cygwin at least...
pkot
--
mailto:address@hidden :: mailto:address@hidden
http://kt.linuxnews.pl/ :: Kernel Traffic po polsku