fake loop

Andrey Ilinykh (ailinykh@usa.net)
3 Aug 2001 09:57:34 MDT


Hi!
Very often I see in kernel such code as
do {
dosomthing();
} while(0);

or even

#define prepare_to_switch() do { } while(0)

Who can explain me a reason for these fake loops?
Thank you,
Andrey

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/