Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // helper.c
- static int thing = 0;
- int get_thing (void) {
- return thing;
- }
- int do_thing (void) { // do_thing is called by set_thing. This is what I want to mock out
- return thing;
- }
- int set_thing (int x) {
- thing = x;
- return do_thing()
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement