7#ifndef CMOCK_FRAMEWORK_H
8#define CMOCK_FRAMEWORK_H
10#include "cmock_internals.h"
12#define CMOCK_VERSION_MAJOR 2
13#define CMOCK_VERSION_MINOR 5
14#define CMOCK_VERSION_BUILD 2
15#define CMOCK_VERSION \
16 ((CMOCK_VERSION_MAJOR << 16) | (CMOCK_VERSION_MINOR << 8) | \
20#ifndef CMOCK_MEM_INDEX_TYPE
22#define CMOCK_MEM_INDEX_TYPE size_t
25#define CMOCK_GUTS_NONE (0)
30CMOCK_MEM_INDEX_TYPE CMock_Guts_MemNew(CMOCK_MEM_INDEX_TYPE size);
31CMOCK_MEM_INDEX_TYPE CMock_Guts_MemChain(CMOCK_MEM_INDEX_TYPE root_index,
32 CMOCK_MEM_INDEX_TYPE obj_index);
34CMock_Guts_MemNext(CMOCK_MEM_INDEX_TYPE previous_item_index);
35CMOCK_MEM_INDEX_TYPE CMock_Guts_MemEndOfChain(CMOCK_MEM_INDEX_TYPE root_index);
37void *CMock_Guts_GetAddressFor(CMOCK_MEM_INDEX_TYPE index);
39CMOCK_MEM_INDEX_TYPE CMock_Guts_MemBytesCapacity(
void);
40CMOCK_MEM_INDEX_TYPE CMock_Guts_MemBytesFree(
void);
41CMOCK_MEM_INDEX_TYPE CMock_Guts_MemBytesUsed(
void);
42void CMock_Guts_MemFreeAll(
void);
43void CMock_Guts_MemFreeFinal(
void);