From 4982a5779b16c7eddb9c5b409d96a46bbddc6627 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Wed, 16 Oct 2024 04:28:19 +0200 Subject: Mark function as inline --- include/array.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/array.h b/include/array.h index a6c2258..e3ce3e8 100644 --- a/include/array.h +++ b/include/array.h @@ -56,7 +56,7 @@ _mlib_array_hdr(void *p, ptrdiff_t align) #define array_foreach(p, i) for (typeof(p) i = (p); i < (p) + array_len(p); i++) [[_mlib_inline]] -static void +static inline void array_set_size(void *p, ptrdiff_t size, ptrdiff_t align) { _mlib_arr_hdr_t *hdr = _mlib_array_hdr(p, align); -- cgit v1.2.3