| 356 | |
| 357 | |
| 358 | LUA_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 | |
| 367 | static size_t align8(size_t s) { |
| 368 | if ((s & 0x7) == 0) |
no test coverage detected