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