2D Run-and-gun shooter inspired by One Man's Doomsday, Counter-Strike, and Metal Slug.
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

minIni.mock.h 729 B

123456789101112131415161718192021222324252627282930
  1. #ifndef MININI_MOCK_H
  2. #define MININI_MOCK_H
  3. #include "../src/packages/game/IZ_common.h"
  4. #include "../src/packages/test/IZ_test.h"
  5. mock(ini_getl) long ini_getl(const char *Section, const char *Key, long DefValue, const char *Filename) {
  6. mock_return(ini_getl) DefValue;
  7. }
  8. mock(ini_putl) i32 ini_putl(const char *Section, const char *Key, long Value, const char *Filename) {
  9. mock_return(ini_putl) 1;
  10. }
  11. mock(ini_gets) i32 ini_gets(
  12. const char *Section,
  13. const char *Key,
  14. const char *DefValue,
  15. char *Buffer,
  16. i32 BufferSize,
  17. const char *Filename
  18. ) {
  19. mock_return(ini_gets) 0;
  20. }
  21. mock(ini_puts) i32 ini_puts(const char *Section, const char *Key, const char *Value, const char *Filename) {
  22. mock_return(ini_puts) 1;
  23. }
  24. #endif