Source-Changes-D archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: src/sys/fs/puffs



    Date:        Wed, 15 Oct 2014 19:41:40 +0100
    From:        David Laight <david%l8s.co.uk@localhost>
    Message-ID:  <20141015184140.GL23340%snowdrop.l8s.co.uk@localhost>

  | Consider what happens if you write:
  | When DPRINTF() expands 'if (xxx) yyy' it all goes horribly wrong.

Of course, the do { } while(0) wrapping is needed in the DPRINTF
expansion - that was also added - that's there to deal with problems
just like that.   WIth that, DPRINTF() acts just like a function
(except it has no value of course) for syntax purposes, and doesn't
need to be surrounded with {} every time it is used.

kre



Home | Main Index | Thread Index | Old Index