Files
integration/luprex/cpp/core/table.hpp
2026-02-25 01:58:19 -05:00

26 lines
685 B
C++

////////////////////////////////////////////////////////////
//
// 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);