mirror of
https://github.com/ThrowTheSwitch/CMock.git
synced 2026-09-03 08:50:00 +00:00
Merge pull request #297 from Tuc-an/size_t
change CMOCK_MEM_INDEX_TYPE default type to size_t
This commit is contained in:
@@ -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
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user