#ifMEMP_OVERFLOW_CHECK /*if MEMP_OVERFLOW_CHECK is turned on, we reserve some bytes at the beginning * and at the end of each element, initialize them as 0xcd and check * them later.*/ /*If MEMP_OVERFLOW_CHECK is >= 2, on every call to memp_malloc or memp_free, ...
memp_overflow_check_element_overflow(memp, type); memp_overflow_check_element_underflow(memp, type); #endif /* MEMP_OVERFLOW_CHECK >= 2 */ #endif /* MEMP_OVERFLOW_CHECK */ MEMP_STATS_DEC(used, type); //减少内存池分配相关的统计量 memp->next = memp_tab[type]; //将POOL插入到memp_ta...