////////////////////////////////////////////////////////////// // // tablecmp -- compare two tables nonrecursively. // ////////////////////////////////////////////////////////////// #ifndef TABLECMP_HPP #define TABLECMP_HPP #include "luastack.hpp" #include "util.hpp" #include "streambuffer.hpp" // Compare two tables, generating a diff in the specified stream buffer. // // The synch stack must have stnmap, stab on top. // The master stack must have mtnmap, mtab on top. // If cmeta is true, the metatables of the two tables are compared. // Returns true if there were any diffs. // bool tablecmp_diff(lua_State *synch, lua_State *master, bool cmeta, StreamBuffer *sb); // Given a tablecmp_diff output, convert it to a debug string. // std::string tablecmp_debug_string(StreamBuffer *sb); #endif // TABLECMP_HPP