** free all CallInfo structures not in use by a thread */
| 123 | ** free all CallInfo structures not in use by a thread |
| 124 | */ |
| 125 | void luaE_freeCI(lua_State *L) { |
| 126 | CallInfo *ci = L->ci; |
| 127 | CallInfo *next = ci->next; |
| 128 | ci->next = nullptr; |
| 129 | while ((ci = next) != nullptr) { |
| 130 | next = ci->next; |
| 131 | luaM_free(L, ci); |
| 132 | L->nci--; |
| 133 | } |
| 134 | } |
| 135 | |
| 136 | |
| 137 | /* |
no outgoing calls
no test coverage detected