4158 shaares
128 private links
128 private links
Part1
#define FOO(x) do { foo(x); bar(x); } while (0)
if (condition)
FOO(x);
else
....
Part 2
do {
// do something
if (error) {
break;
}
// do something else
if (error) {
break;
}
// etc..
} while (0);