Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void my_func()
- {
- // Initialise stuff
- if(!stuff)
- {
- goto cleanup;
- }
- // Do some more stuff
- if(x)
- {
- }
- else
- {
- goto cleanup;
- }
- // Do some more stuff
- cleanup:
- // Do cleanup
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement