Lately, I see more and more code pieces that use the template of:
do {
... some code ...
} while (false);
Why to do this? If I'm not mistaken, the code will run only one time so the loop is seem not to be needed.
My main encounters with this style were in Windows drivers, and low-level operations in some APIs.