Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdlib.h>
- int some_condition() { return 0; }
- int some_other_condition() { return 0; }
- void some_errors_occured() {}
- void some_thing() {
- do {
- if (some_condition()) {
- break;
- }
- if (some_other_condition()) {
- break;
- }
- errors_have_occured_noreturn();
- return;
- } while (0);
- some_final_action();
- }
- void some_thing2() {
- if (some_condition() || some_other_condition()) {
- some_final_action();
- return;
- }
- errors_have_occured_noreturn();
- return;
- }
- int main(int argc, char **argv) {
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement