Bug in not properly keeping the observed valid table on the stack.

This commit is contained in:
ThePhD 2017-02-01 06:54:30 -05:00
parent 8d6f304bad
commit fe8b1c1c10
2 changed files with 182 additions and 182 deletions

View File

@ -20,8 +20,8 @@
// CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// This file was generated with a script.
// Generated 2017-02-01 11:29:19.754104 UTC
// This header was generated with sol v2.15.7 (revision c7deb82)
// Generated 2017-02-01 11:49:07.483904 UTC
// This header was generated with sol v2.15.7 (revision 8d6f304)
// https://github.com/ThePhD/sol2
#ifndef SOL_SINGLE_INCLUDE_HPP
@ -9950,7 +9950,7 @@ namespace sol {
}
bool valid() const {
stack::push_pop(tbl);
auto pp = stack::push_pop(tbl);
auto p = stack::probe_get_field<std::is_same<meta::unqualified_t<Table>, global_table>::value>(tbl.lua_state(), key, lua_gettop(tbl.lua_state()));
lua_pop(tbl.lua_state(), p.levels);
return p;

View File

@ -114,7 +114,7 @@ namespace sol {
}
bool valid() const {
stack::push_pop(tbl);
auto pp = stack::push_pop(tbl);
auto p = stack::probe_get_field<std::is_same<meta::unqualified_t<Table>, global_table>::value>(tbl.lua_state(), key, lua_gettop(tbl.lua_state()));
lua_pop(tbl.lua_state(), p.levels);
return p;