Fixed formatting

This commit is contained in:
2022-11-19 19:38:24 +11:00
committed by GitHub
parent 6474dfd4a3
commit 5dfbb8b973

View File

@@ -106,14 +106,14 @@ TOY_API void setAllocator(AllocatorFn);
Pass it a function which matches the above signature, and it'll be callable via the following macros: Pass it a function which matches the above signature, and it'll be callable via the following macros:
* ALLOCATE(type, count) * `ALLOCATE(type, count)`
* FREE(type, pointer) * `FREE(type, pointer)`
* GROW_ARRAY(type, pointer, oldCount, newCount) * `GROW_ARRAY(type, pointer, oldCount, newCount)`
* SHRINK_ARRAY(type, pointer, oldCount, newCount) * `SHRINK_ARRAY(type, pointer, oldCount, newCount)`
* FREE_ARRAY(type, pointer, oldCount) * `FREE_ARRAY(type, pointer, oldCount)`
Also, the following macros are provided to calculate the ideal array capacities (the latter of which is for rapidly growing structures): Also, the following macros are provided to calculate the ideal array capacities (the latter of which is for rapidly growing structures):
* GROW_CAPACITY(capacity) * `GROW_CAPACITY(capacity)`
* GROW_CAPACITY_FAST(capacity) * `GROW_CAPACITY_FAST(capacity)`