Add code generation for array
This commit is contained in:
5
codegen/array/snippets/append_capped
Normal file
5
codegen/array/snippets/append_capped
Normal file
@@ -0,0 +1,5 @@
|
||||
if (!array || array->count >= array->capacity) {{
|
||||
return;
|
||||
}}
|
||||
|
||||
array->items[(array->count)++] = item;
|
Reference in New Issue
Block a user