2D Run-and-gun shooter inspired by One Man's Doomsday, Counter-Strike, and Metal Slug.
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
 
 
 

29 rindas
721 B

  1. #ifndef SDL_JOYSTICK_MOCK_H
  2. #define SDL_JOYSTICK_MOCK_H
  3. #include "../src/packages/game/IZ_common.h"
  4. #include "../src/packages/test/IZ_test.h"
  5. typedef struct _SDL_Joystick {} SDL_Joystick;
  6. #define MOCK_OPEN_JOYSTICKS 1
  7. mock(SDL_JoystickOpen) SDL_Joystick* SDL_JoystickOpen(i32 device_index) {
  8. static SDL_Joystick joystick;
  9. mock_return(SDL_JoystickOpen) &joystick;
  10. }
  11. mock(SDL_NumJoysticks) i32 SDL_NumJoysticks(void) {
  12. mock_return(SDL_NumJoysticks) MOCK_OPEN_JOYSTICKS;
  13. }
  14. mock(SDL_JoystickInstanceID) i32 SDL_JoystickInstanceID(SDL_Joystick* joystick) {
  15. mock_return(SDL_JoystickInstanceID) 0;
  16. }
  17. mock(SDL_JoystickClose) void SDL_JoystickClose(SDL_Joystick* _joystick) {
  18. mock_return(SDL_JoystickClose);
  19. }
  20. #endif