Starter project for SDL2.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
1234567891011121314 |
- #ifndef IZ_MOCK_H
- #define IZ_MOCK_H
-
- #define mock_call_count_t uint8_t
-
- #define mock(X) static mock_call_count_t calls_##X = 0;
-
- #define mock_return(X) calls_##X += 1; return
-
- #define mock_reset(X) calls_##X = 0
-
- #define mock_calls(X) ((mock_call_count_t) (calls_##X))
-
- #endif
|