Skip to content

Instantly share code, notes, and snippets.

@mikea
Created August 18, 2009 18:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mikea/169869 to your computer and use it in GitHub Desktop.
Save mikea/169869 to your computer and use it in GitHub Desktop.
// setup
int status = 0;
do {
// preconditions
status = doSomething();
if (status) break;
status = doSomethingElse();
if (status) break;
// computation
status = doWhatYouWantedToInTheFirstPlace();
} while (false); // cleanup return status;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment