MCPcopy Create free account
hub / github.com/ArduPilot/ardupilot / luaE_freethread

Function luaE_freethread

libraries/AP_Scripting/lua/src/lstate.c:293–300  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

291
292
293void luaE_freethread (lua_State *L, lua_State *L1) {
294 LX *l = fromstate(L1);
295 luaF_close(L1, L1->stack); /* close all upvalues for this thread */
296 lua_assert(L1->openupval == NULL);
297 luai_userstatefree(L, L1);
298 freestack(L1);
299 luaM_free(L, l);
300}
301
302
303LUA_API lua_State *lua_newstate (lua_Alloc f, void *ud) {

Callers 1

freeobjFunction · 0.85

Calls 2

luaF_closeFunction · 0.85
freestackFunction · 0.85

Tested by

no test coverage detected