From 5dfbb8b9733960537c2a429e8103ac5ea81386c4 Mon Sep 17 00:00:00 2001 From: Kayne Ruse Date: Sat, 19 Nov 2022 19:38:24 +1100 Subject: [PATCH] Fixed formatting --- using-toy.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/using-toy.md b/using-toy.md index c6b0934..ebb826d 100644 --- a/using-toy.md +++ b/using-toy.md @@ -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: -* ALLOCATE(type, count) -* FREE(type, pointer) -* GROW_ARRAY(type, pointer, oldCount, newCount) -* SHRINK_ARRAY(type, pointer, oldCount, newCount) -* FREE_ARRAY(type, pointer, oldCount) +* `ALLOCATE(type, count)` +* `FREE(type, pointer)` +* `GROW_ARRAY(type, pointer, oldCount, newCount)` +* `SHRINK_ARRAY(type, pointer, oldCount, newCount)` +* `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): -* GROW_CAPACITY(capacity) -* GROW_CAPACITY_FAST(capacity) +* `GROW_CAPACITY(capacity)` +* `GROW_CAPACITY_FAST(capacity)`