Add code generation for doubly linked list
This commit is contained in:
8
codegen/dbl_list/snippets/list_empty
Normal file
8
codegen/dbl_list/snippets/list_empty
Normal file
@@ -0,0 +1,8 @@
|
||||
if (!list) {{
|
||||
return;
|
||||
}}
|
||||
|
||||
u64 count = list->node_count;
|
||||
for (u64 i = 0; i < count; ++i) {{
|
||||
wapp_str8_list_pop_back(list);
|
||||
}}
|
Reference in New Issue
Block a user