////////////////////////////////////////////////////////////
//
// This module contains a library of lua functions
// for manipulating tables.  It also provides a library
// of useful classes based on tables.
//
////////////////////////////////////////////////////////////


#pragma once

#include "luastack.hpp"

// table_equal
//
// True if two tables contain the same key/value pairs.
//
bool table_equal(LuaCoreStack &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(LuaCoreStack &LS0, LuaSlot tab, LuaSlot pairs, bool sort);
