[lkml]   [2001]   [Apr]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: asm/unistd.h
    On Thu, Apr 05, 2001 at 09:06:20AM -0400, Bart Trojanowski wrote:
    > So you ask: "why not just use a { ... } to define a macro". I don't
    > remember the case for this but I know it's there. It has to do with a
    > complicated if/else structure where a simple {} breaks.

    This doesn't follow in my mind. I can't think of a case where a { ... }
    would fail, but a do { ... } while (0) would succeed. The former would
    also save a few keystrokes.

    Joseph Carter <> Free software developer

    // Minor lesson: don't fuck about with something you don't fully understand
    -- the dosdoom source code

    [unhandled content-type:application/pgp-signature]
     \ /
      Last update: 2005-03-22 13:24    [W:0.020 / U:1.032 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site