Fix codegen bugs

This commit is contained in:
Abdelrahman Said committed 2025-04-16 08:13:31 +01:00
1 parent cfa8094260
commit 63acdd1336
5 files changed
+9 -9

No files matched your search

+3 -3
View File
@@ -4,14 +4,14 @@
}}
if (index == 0) {{
output = wapp_{T}_list_pop_front(list);
output = wapp_{Tlower}_list_pop_front(list);
goto RETURN_{Tupper}_LIST_REMOVE;
}} else if (index == list->node_count) {{
output = wapp_{T}_list_pop_back(list);
output = wapp_{Tlower}_list_pop_back(list);
goto RETURN_{Tupper}_LIST_REMOVE;
}}
output = wapp_{T}_list_get(list, index);
output = wapp_{Tlower}_list_get(list, index);
if (!output) {{
goto RETURN_{Tupper}_LIST_REMOVE;
}}