fake loop

From: Andrey Ilinykh (ailinykh@usa.net)
Date: Fri Aug 03 2001 - 10:57:34 EST


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/



This archive was generated by hypermail 2b29 : Tue Aug 07 2001 - 21:00:27 EST