feat(allocator): added calloc function
This commit is contained in:
parent
00b6aaa735
commit
79ea8dda64
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||||
Loading…
Add table
Reference in a new issue