Files
integration/luprex/cpp/core/table.hpp

30 lines
730 B
C++
Raw Normal View History

2021-01-12 14:14:38 -05:00
////////////////////////////////////////////////////////////
//
// This module contains a library of lua functions
2021-07-20 14:48:53 -04:00
// for manipulating tables. It also provides a library
// of useful classes based on tables.
2021-01-12 14:14:38 -05:00
//
////////////////////////////////////////////////////////////
2020-11-27 13:21:07 -05:00
#ifndef TABLE_HPP
#define TABLE_HPP
2020-11-13 18:17:47 -05:00
2020-11-27 13:21:07 -05:00
#include "luastack.hpp"
2020-11-13 18:17:47 -05:00
2021-01-12 14:14:38 -05:00
// table_equal
//
// True if two tables contain the same key/value pairs.
//
bool table_equal(LuaCoreStack &LS0, LuaSlot tab1, LuaSlot tab2);
2021-01-12 14:14:38 -05:00
2021-09-08 01:32:08 -04:00
// 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);
2021-09-08 01:32:08 -04:00
2020-11-27 13:21:07 -05:00
#endif // TABLE_HPP