feat(allocator): added calloc function

This commit is contained in:
Mineplay 2025-04-19 06:38:01 -05:00
parent 00b6aaa735
commit 79ea8dda64

View file

@ -31,6 +31,7 @@
void *hallocy_allocate(size_t size, bool zero_memory); void *hallocy_allocate(size_t size, bool zero_memory);
static inline void *hallocy_malloc(size_t size) { return hallocy_allocate(size, false); } static inline void *hallocy_malloc(size_t size) { return hallocy_allocate(size, false); }
static inline void *hallocy_calloc(size_t size, size_t count) { return hallocy_allocate(size * count, true); }
HallocyError hallocy_free(void *pointer); HallocyError hallocy_free(void *pointer);
#endif #endif