MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / list_clear

Function list_clear

TheForceEngine/TFE_Jedi/Memory/list.cpp:117–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

115 }
116
117 void list_clear(List* list)
118 {
119 if (!list) { return; }
120
121 s32 size = list->step * list->capacity + sizeof(List);
122 u8* end = (u8*)list + size;
123 list->end = end - list->step;
124 list->self = list;
125
126 u8* start = (u8*)list + sizeof(List);
127 list->head = start;
128
129 initializeList(list);
130 }
131
132 void initializeList(List* list)
133 {

Callers 1

actor_clearStateFunction · 0.85

Calls 1

initializeListFunction · 0.85

Tested by

no test coverage detected