mirror of https://github.com/YosysHQ/yosys.git
Add missing log_dump handler for std::vector<>
Signed-off-by: Claire Xenia Wolf <claire@clairexen.net>
This commit is contained in:
parent
6781746872
commit
be1a12595a
12
kernel/log.h
12
kernel/log.h
|
@ -419,6 +419,18 @@ static inline void log_dump_val_worker(pool<K, OPS> &v) {
|
|||
log(" }");
|
||||
}
|
||||
|
||||
template<typename K>
|
||||
static inline void log_dump_val_worker(std::vector<K> &v) {
|
||||
log("{");
|
||||
bool first = true;
|
||||
for (auto &it : v) {
|
||||
log(first ? " " : ", ");
|
||||
log_dump_val_worker(it);
|
||||
first = false;
|
||||
}
|
||||
log(" }");
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
static inline void log_dump_val_worker(T *ptr) { log("%p", ptr); }
|
||||
|
||||
|
|
Loading…
Reference in New Issue