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.
 
 
 
 
 
 

25 lines
569 B

  1. #ifndef SDL_STDINC_MOCK_H
  2. #define SDL_STDINC_MOCK_H
  3. #include <string.h>
  4. #include "../src/packages/game/IZ_common.h"
  5. #include "../src/packages/test/IZ_test.h"
  6. mock(SDL_memcpy) void* SDL_memcpy(void* dst, const void* src, size_t len) {
  7. mock_return(SDL_memcpy) memcpy(dst, src, len);
  8. }
  9. mock(SDL_memset) void* SDL_memset(void* dst, i32 c, size_t len) {
  10. mock_return(SDL_memset) memset(dst, c, len);
  11. }
  12. mock(SDL_malloc) void* SDL_malloc(size_t size) {
  13. mock_return(SDL_malloc) malloc(size);
  14. }
  15. mock(SDL_free) void SDL_free(void* mem) {
  16. mock_return(SDL_free);
  17. }
  18. #endif