mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-06 11:31:49 +00:00
add dv::list(initializer_list<value>)
This commit is contained in:
parent
2aae28e193
commit
3bc329041a
2 changed files with 7 additions and 4 deletions
|
|
@ -295,6 +295,8 @@ namespace dv {
|
|||
|
||||
value list();
|
||||
value object();
|
||||
|
||||
value list(std::initializer_list<value> values);
|
||||
}
|
||||
|
||||
#include "util/Buffer.hpp"
|
||||
|
|
@ -515,4 +517,8 @@ namespace dv {
|
|||
value list() {
|
||||
return std::make_shared<objects::List>();
|
||||
}
|
||||
|
||||
value list(std::initializer_list<value> values) {
|
||||
return std::make_shared<objects::List>(values);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue