summaryrefslogtreecommitdiff
path: root/indra/newview/scripts/lua/test_atexit.lua
diff options
context:
space:
mode:
authorNat Goodspeed <nat@lindenlab.com>2024-07-03 14:03:56 -0400
committerNat Goodspeed <nat@lindenlab.com>2024-07-03 14:03:56 -0400
commit66fb45ddc7dd1a994f6b8312687cb73dbb1281dd (patch)
tree1b9547a028d74f9d1aba9260e6ad6e69bfab9992 /indra/newview/scripts/lua/test_atexit.lua
parent24e6c4ae23b24c7da36b2579069a062ffd882059 (diff)
Add llsd::toArray() and llsd::toMap() utility functions.
These encapsulate looping over a C++ iterable (be it a sequence container or an associative container) and returning an LLSD array or map, respectively, derived from the C++ container. By default, each C++ container item is directly converted to LLSD. Also make LLSDParam<LLSD> slightly more efficient by using std::vector::emplace_back() instead of push_back(), which supports std::vector<std::unique_ptr>, so we need not use std::shared_ptr.
Diffstat (limited to 'indra/newview/scripts/lua/test_atexit.lua')
0 files changed, 0 insertions, 0 deletions