src/ucx/basic_mempool.c

changeset 490
d218607f5a7e
parent 415
d938228c382e
equal deleted inserted replaced
489:921f83a8943f 490:d218607f5a7e
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