Starter project for SDL2.
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

15 wiersze
277 B

  1. #ifndef IZ_MOCK_H
  2. #define IZ_MOCK_H
  3. #define mock_call_count_t uint8_t
  4. #define mock(X) static mock_call_count_t calls_##X = 0;
  5. #define mock_return(X) calls_##X += 1; return
  6. #define mock_reset(X) calls_##X = 0
  7. #define mock_calls(X) ((mock_call_count_t) (calls_##X))
  8. #endif