Add comment for default alignment

This commit is contained in:
Abdelrahman Said 2024-02-24 22:59:25 +00:00
parent b8db582098
commit 1094a9fefb

View File

@ -6,6 +6,8 @@
#include <string.h>
#ifndef DEFAULT_ALIGNMENT
// Why 2 * sizeof(void *) instead of sizeof(void *)
// https://handmade.network/forums/t/6860-alignment_arena_allocator
#define DEFAULT_ALIGNMENT (2 * sizeof(void *))
#endif /* ifndef DEFAULT_ALIGNMENT */