aboutsummaryrefslogtreecommitdiff
path: root/teensy/teensy_list.c
diff options
context:
space:
mode:
authoriamcheeseman <[email protected]>2026-05-11 09:15:49 -0400
committeriamcheeseman <[email protected]>2026-05-11 09:16:04 -0400
commit1300ce4c9cdfa2e6553b32b42bbe2f087a9e816f (patch)
tree3013de63b008e6aa30c26ee2beed501dfc3dab95 /teensy/teensy_list.c
parent2460fd470eb4839252266f61449587dd20de4ddd (diff)
add convenience ty_new() macro
Diffstat (limited to 'teensy/teensy_list.c')
-rw-r--r--teensy/teensy_list.c2
1 files changed, 1 insertions, 1 deletions
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);