summaryrefslogtreecommitdiffstats
path: root/include/zix/allocator.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/zix/allocator.h')
-rw-r--r--include/zix/allocator.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/zix/allocator.h b/include/zix/allocator.h
index e4d813d..bace039 100644
--- a/include/zix/allocator.h
+++ b/include/zix/allocator.h
@@ -130,6 +130,7 @@ zix_calloc(ZixAllocator* const ZIX_NULLABLE allocator,
}
/// Convenience wrapper that defers to realloc() if allocator is null
+ZIX_NODISCARD
static inline void* ZIX_ALLOCATED
zix_realloc(ZixAllocator* const ZIX_NULLABLE allocator,
void* const ZIX_NULLABLE ptr,