Lines Matching refs:size
32 #define OOM(op, size) CRITICAL("could not %s %zd bytes: %s", op, size, strerror(errno))
33 #define MALLOC_OR_OOM_RET(ptr, size, ...) \
35 ptr = malloc(size); \
36 if (!ptr && (size) > 0) { \
37 OOM("malloc", (size)); \
42 #define CALLOC_OR_OOM_RET(ptr, size, ...) \
44 ptr = calloc(1, size); \
45 if (!ptr && (size) > 0) { \
46 OOM("calloc", (size)); \
51 #define REALLOC_OR_OOM_RET(ptr, size, ...) \
54 __tmp_ptr = realloc(ptr, size); \
55 if (!__tmp_ptr && (size) > 0) { \
56 OOM("realloc", (size)); \