Numbering and pairing of lua tables

This commit is contained in:
2021-08-13 17:02:35 -04:00
parent ee16970a8a
commit 7581ac7278
7 changed files with 504 additions and 7 deletions

View File

@@ -16,6 +16,14 @@
namespace util {
IdVector id_vector_create(int64_t id1, int64_t id2, int64_t id3, int64_t id4) {
IdVector result;
if (id1 >= 0) result.push_back(id1);
if (id2 >= 0) result.push_back(id2);
if (id3 >= 0) result.push_back(id3);
if (id4 >= 0) result.push_back(id4);
return result;
}
std::string id_vector_debug_string(const IdVector &idv) {
std::ostringstream oss;