src/basic_mempool.c

changeset 654
c9d008861178
parent 650
77021e06b1a8
equal deleted inserted replaced
647:2e6e9d9f2159 654:c9d008861178
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