src/basic_mempool.c

changeset 650
77021e06b1a8
parent 572
f0f99dd06d9f
equal deleted inserted replaced
649:12c2b10b51a9 650:77021e06b1a8
26 * POSSIBILITY OF SUCH DAMAGE. 26 * POSSIBILITY OF SUCH DAMAGE.
27 */ 27 */
28 28
29 #include "cx/basic_mempool.h" 29 #include "cx/basic_mempool.h"
30 #include "cx/utils.h" 30 #include "cx/utils.h"
31 #include <stdint.h>
32 #include <string.h> 31 #include <string.h>
33 32
34 #define of_chk_(n) if (SIZE_MAX - sizeof(cx_destructor_func) < (n)) return NULL 33 #define of_chk_(n) if (SIZE_MAX - sizeof(cx_destructor_func) < (n)) return NULL
35 34
36 /** Internal structure for denoting pooled memory. */ 35 /** Internal structure for denoting pooled memory. */

mercurial