From 1300ce4c9cdfa2e6553b32b42bbe2f087a9e816f Mon Sep 17 00:00:00 2001 From: iamcheeseman Date: Mon, 11 May 2026 09:15:49 -0400 Subject: add convenience ty_new() macro --- teensy/teensy_list.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'teensy/teensy_list.c') diff --git a/teensy/teensy_list.c b/teensy/teensy_list.c index c8035b8..342af61 100644 --- a/teensy/teensy_list.c +++ b/teensy/teensy_list.c @@ -5,7 +5,7 @@ void *ty_list_create(void) { - struct ty_list_header *header = ty_alloc(sizeof(struct ty_list_header)); + struct ty_list_header *header = ty_new(struct ty_list_header); header->cap = 0; header->len = 0; return (void*)(header + 1); -- cgit v1.3-2-g0d8e