mem: added an MEMP_OVERFLOW_CHECK implementation for MEM_USE_POOLS; added another unit test

This commit is contained in:
goldsimon
2014-12-10 09:48:50 +01:00
parent dbe33783c9
commit 0ff98eb2f5
3 changed files with 72 additions and 5 deletions

View File

@@ -94,6 +94,9 @@ extern const u16_t memp_sizes[MEMP_MAX];
struct memp_malloc_helper
{
memp_t poolnr;
#if MEMP_OVERFLOW_CHECK
u16_t size;
#endif /* MEMP_OVERFLOW_CHECK */
};
#endif /* MEM_USE_POOLS */