Merge pull request #297 from Tuc-an/size_t

change CMOCK_MEM_INDEX_TYPE default type to size_t
This commit is contained in:
Mark VanderVoord
2020-03-25 08:01:45 -04:00
committed by GitHub
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -732,7 +732,7 @@ based on other settings, particularly Unity's settings.
* `CMOCK_MEM_INDEX_TYPE` * `CMOCK_MEM_INDEX_TYPE`
This needs to be something big enough to point anywhere in Cmock's This needs to be something big enough to point anywhere in Cmock's
memory space... usually it's an unsigned int. memory space... usually it's a size_t.
Other Tips Other Tips
========== ==========
+2 -1
View File
@@ -16,7 +16,8 @@
/* should be big enough to index full range of CMOCK_MEM_MAX */ /* should be big enough to index full range of CMOCK_MEM_MAX */
#ifndef CMOCK_MEM_INDEX_TYPE #ifndef CMOCK_MEM_INDEX_TYPE
#define CMOCK_MEM_INDEX_TYPE unsigned int #include <stddef.h>
#define CMOCK_MEM_INDEX_TYPE size_t
#endif #endif
#define CMOCK_GUTS_NONE (0) #define CMOCK_GUTS_NONE (0)