projects
/
yosys.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ac915a
)
Added log_dump() support for generic pointers
author
Clifford Wolf
<clifford@clifford.at>
Fri, 14 Mar 2014 15:39:50 +0000
(16:39 +0100)
committer
Clifford Wolf
<clifford@clifford.at>
Fri, 14 Mar 2014 15:39:50 +0000
(16:39 +0100)
kernel/log.h
patch
|
blob
|
history
diff --git
a/kernel/log.h
b/kernel/log.h
index fbc3c1c39be5dd19edcb1e188796213450df0d03..5fbd2fc680a0e5b4206e49492f2123640f25f4fc 100644
(file)
--- 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)
{