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
|
|
|
//
|
|
|
|
|
////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
|
|
|
2026-02-25 01:58:19 -05:00
|
|
|
#pragma once
|
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.
|
|
|
|
|
//
|
2023-04-06 20:12:03 -04:00
|
|
|
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.
|
|
|
|
|
//
|
2023-04-06 20:12:03 -04:00
|
|
|
bool table_getpairs(LuaCoreStack &LS0, LuaSlot tab, LuaSlot pairs, bool sort);
|