mm: Add a bunch of assertions

This commit is contained in:
YAMAMOTO Takashi
2020-02-13 17:06:05 +09:00
committed by patacongo
parent c1a32fb9dd
commit 46ad645efc
6 changed files with 37 additions and 2 deletions
+2
View File
@@ -170,6 +170,8 @@ void mm_initialize(FAR struct mm_heap_s *heap, FAR void *heapstart,
CHECK_ALLOCNODE_SIZE;
CHECK_FREENODE_SIZE;
#endif
DEBUGASSERT(MM_MIN_CHUNK >= SIZEOF_MM_FREENODE);
DEBUGASSERT(MM_MIN_CHUNK >= SIZEOF_MM_ALLOCNODE);
/* Set up global variables */