| 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. */ |