| 462 | } |
| 463 | |
| 464 | inline LuaState::~LuaState() { |
| 465 | if (option_ != kThreadLocal && L_ != nullptr) { |
| 466 | // never close threadlocal, for save destruction. |
| 467 | lua_close(L_); |
| 468 | } |
| 469 | } |
| 470 | |
| 471 | inline LuaState* LuaState::Create_(Option opt) { |
| 472 | LuaState* s = new LuaState(); |
nothing calls this directly
no outgoing calls
no test coverage detected