mirror of https://github.com/YosysHQ/yosys.git
json.h: Fix array template
Using `{begin|end}_object` inserts curly braces instead of square brackets, which can result in reordering (and may be syntactically incorrect?).
This commit is contained in:
parent
133232f659
commit
cab7f1554c
|
@ -90,10 +90,10 @@ public:
|
||||||
template<typename T>
|
template<typename T>
|
||||||
void array(const T &&values)
|
void array(const T &&values)
|
||||||
{
|
{
|
||||||
begin_object();
|
begin_array();
|
||||||
for (auto &item : values)
|
for (auto &item : values)
|
||||||
value(item);
|
value(item);
|
||||||
end_object();
|
end_array();
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue