Files
integration/luprex/cpp/core/table.hpp
2023-02-14 14:05:45 -05:00

29 lines
721 B
C++

////////////////////////////////////////////////////////////
//
// This module contains a library of lua functions
// for manipulating tables. It also provides a library
// of useful classes based on tables.
//
////////////////////////////////////////////////////////////
#ifndef TABLE_HPP
#define TABLE_HPP
#include "luastack.hpp"
// table_equal
//
// True if two tables contain the same key/value pairs.
//
bool table_equal(LuaStack &LS0, LuaSlot tab1, LuaSlot tab2);
// table_getpairs
//
// Get a table containing the key-value pairs in tab. Optionally sort
// the pairs. Return true if all keys were sortable.
//
bool table_getpairs(LuaStack &LS0, LuaSlot tab, LuaSlot pairs, bool sort);
#endif // TABLE_HPP