Created
October 21, 2017 17:07
-
-
Save b4284/ebbf8cac8b045e8860066afb6c6c295c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| int doCheck(int check) { | |
| switch (check) { | |
| case TYPE_1: | |
| return afterCheck(); | |
| case TYPE_2: | |
| return afterCheck(); | |
| default: | |
| return 0; | |
| } | |
| } | |
| int program(condition) { | |
| int ret = 0; | |
| switch (condition) { | |
| int check; | |
| case 1: | |
| check = blahblahblah(blah, blah); | |
| ret = doCheck(check); | |
| break; | |
| case 2: | |
| check = daladaladala(dala, dala); | |
| ret = doCheck(check); | |
| break; | |
| } | |
| return ret; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment