mirror of
https://github.com/lua/lua
synced 2026-06-08 15:34:49 +00:00
7696c6474f
To remove a to-be-closed variable from the stack in the C API a function must use 'lua_settop' or 'lua_pop'. Previous implementation of 'luaL_pushresult' was not closing the box. (This commit also added tests to check that box is being closed "as soon as possible".)