MCPcopy Create free account
hub / github.com/Achain-Dev/Achain / AddToList

Function AddToList

src/Chain/libraries/glua/glua_structs.cpp:28–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26 }
27
28 void AddToList(List* list, ListItem* item) {
29 if (!list || !item) {
30 return;
31 }
32 if (list->tail) {
33 list->tail->next = item;
34 }
35 else {
36 list->head = item;
37 }
38 item->prev = list->tail;
39 item->next = NULL;
40 list->tail = item;
41 list->size++;
42 }
43
44 void AddToListHead(List* list, ListItem* item) {
45 if (!list || !item) {

Callers 5

AddToStatementFunction · 0.85
AddToSetFunction · 0.85
AddToVarListFunction · 0.85
AddToTableFunction · 0.85
ProcessCodeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected