From 09166d46d6a30c1d431cc8371325d4fc8ae76162 Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Mon, 14 Jul 2025 09:16:39 -0700 Subject: null instead of 0 --- mem/include/mem.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'mem/include/mem.h') diff --git a/mem/include/mem.h b/mem/include/mem.h index 224b069..3050ba8 100644 --- a/mem/include/mem.h +++ b/mem/include/mem.h @@ -68,13 +68,13 @@ /// Allocate a new chunk of N blocks. /// Return a pointer to the first block of the chunk. /// When there is no space left in the allocator, allocation can either trap -/// (default) or gracefully return 0. Call mem_enable_traps() to toggle this +/// (default) or gracefully return null. Call mem_enable_traps() to toggle this /// behaviour. /// New chunks are conveniently zeroed out. #define mem_alloc(MEM, num_blocks) mem_alloc_(&(MEM)->mem, num_blocks) /// Free the chunk. -/// The chunk pointer is conveniently set to 0. +/// The chunk pointer is conveniently set to null. #define mem_free(MEM, CHUNK) mem_free_(&(MEM)->mem, (void**)CHUNK) /// Return a pointer to a chunk given the chunk's handle. -- cgit v1.2.3