2D Run-and-gun shooter inspired by One Man's Doomsday, Counter-Strike, and Metal Slug.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 
 

25 行
571 B

  1. #ifndef SDL_STDINC_MOCK_H
  2. #define SDL_STDINC_MOCK_H
  3. #include <string.h>
  4. #include "../src/packages/common/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