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.
 
 
 
 
 
 

29 lines
672 B

  1. #ifndef SDL_STDINC_MOCK_H
  2. #define SDL_STDINC_MOCK_H
  3. #include <string.h>
  4. #include <bdd-for-c-mocks.h>
  5. #include "../../../src/packages/common/IZ_common.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. mock(SDL_calloc) void* SDL_calloc(size_t num, size_t size) {
  19. mock_return(SDL_calloc) calloc(num, size);
  20. }
  21. #endif