diff --git a/Include/Hallocy/Core/Allocator.h b/Include/Hallocy/Core/Allocator.h index 04ff2e5..e3ab9c0 100644 --- a/Include/Hallocy/Core/Allocator.h +++ b/Include/Hallocy/Core/Allocator.h @@ -31,6 +31,7 @@ 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_calloc(size_t size, size_t count) { return hallocy_allocate(size * count, true); } HallocyError hallocy_free(void *pointer); #endif \ No newline at end of file