close method

void close()

Close all active to-be-closed variables in the main thread, release all objects in the given Lua state (calling the corresponding garbage- collection metamethods, if any), and frees all dynamic memory used by this state.

Lua Docs.

Implementation

void close() => lua.lua.lua_close(pointer);