diff options
author | Clifford Wolf <clifford@clifford.at> | 2014-03-14 16:39:50 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2014-03-14 16:39:50 +0100 |
commit | 5da9558fa8a6be6e98eb0a7a7d0c6dd8bd86347f (patch) | |
tree | c5217e2766e09d6df0ebeb18b44521c5407a8ba8 | |
parent | 0ac915a757a10f50fd74e18365cbcf351885c162 (diff) | |
download | yosys-5da9558fa8a6be6e98eb0a7a7d0c6dd8bd86347f.tar.gz yosys-5da9558fa8a6be6e98eb0a7a7d0c6dd8bd86347f.tar.bz2 yosys-5da9558fa8a6be6e98eb0a7a7d0c6dd8bd86347f.zip |
Added log_dump() support for generic pointers
-rw-r--r-- | kernel/log.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/log.h b/kernel/log.h index fbc3c1c39..5fbd2fc68 100644 --- a/kernel/log.h +++ b/kernel/log.h @@ -128,6 +128,9 @@ static inline void log_dump_val_worker(std::string v) { log("%s", v.c_str()); } static inline void log_dump_val_worker(RTLIL::SigSpec v) { log("%s", log_signal(v)); } static inline void log_dump_args_worker(const char *p) { log_assert(*p == 0); } +template<typename T> +static inline void log_dump_val_worker(T *ptr) { log("%p", ptr); } + template <typename T, typename ... Args> void log_dump_args_worker(const char *p, T first, Args ... args) { |