Numbering and pairing of lua tables
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user