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

Function lua_close

src/Chain/libraries/glua/lstate.cpp:358–365  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

356
357
358LUA_API void lua_close(lua_State *L) {
359 L = G(L)->mainthread; /* only the main thread can be closed */
360 thinkyoung::lua::lib::close_lua_state_values(L);
361 delete L->malloced_buffers;
362 free(L->malloc_buffer);
363 lua_lock(L);
364 close_state(L);
365}
366
367static size_t align8(size_t s) {
368 if ((s & 0x7) == 0)

Callers 5

os_exitFunction · 0.85
close_lua_stateFunction · 0.85
FunctionCheckFunction · 0.85
main2Function · 0.85
main1Function · 0.85

Calls 2

close_lua_state_valuesFunction · 0.85
close_stateFunction · 0.85

Tested by

no test coverage detected