2D Run-and-gun shooter inspired by One Man's Doomsday, Counter-Strike, and Metal Slug.
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.
|
- #ifndef IZ_MOCK_H
- #define IZ_MOCK_H
-
- #define mock_call_count_t unsigned char
-
- #define mock(X) static mock_call_count_t actual_##X = 0;
-
- #define mock_return(X) actual_##X += 1; return
-
- #define mock_reset(X) actual_##X = 0
-
- #define mock_get_actual_calls(X) (mock_call_count_t) actual_##X
-
- #define mock_set_expected_calls(X, Y) static const mock_call_count_t expected_##X = Y
-
- #define mock_get_expected_calls(X) (mock_call_count_t) expected_##X
-
- #define mock_is_called(X) mock_get_actual_calls(X) > 0
-
- #endif
|