diff options
author | Claire Xenia Wolf <claire@clairexen.net> | 2022-10-20 13:50:25 +0200 |
---|---|---|
committer | Claire Xenia Wolf <claire@clairexen.net> | 2022-10-20 13:50:25 +0200 |
commit | be1a12595af49c9cba5cb3689b21767eb23fa3b1 (patch) | |
tree | 9dd94015bdcdfc0707355d97c3922a6f486da508 | |
parent | 6781746872087d8c1eb3f5560fe338a693a40d7c (diff) | |
download | yosys-be1a12595af49c9cba5cb3689b21767eb23fa3b1.tar.gz yosys-be1a12595af49c9cba5cb3689b21767eb23fa3b1.tar.bz2 yosys-be1a12595af49c9cba5cb3689b21767eb23fa3b1.zip |
Add missing log_dump handler for std::vector<>
Signed-off-by: Claire Xenia Wolf <claire@clairexen.net>
-rw-r--r-- | kernel/log.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/kernel/log.h b/kernel/log.h index 3bc9fd978..8ef6e6d0e 100644 --- a/kernel/log.h +++ b/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); } |