Added log_dump() support for generic pointers

This commit is contained in:
Clifford Wolf 2014-03-14 16:39:50 +01:00
parent 0ac915a757
commit 5da9558fa8
1 changed files with 3 additions and 0 deletions

View File

@ -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)
{