projects
/
sdk
/
tools
/
heaptrack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fdad5a7
)
Two more coments
author
Milian Wolff
<mail@milianw.de>
Mon, 15 Jun 2015 20:42:41 +0000
(22:42 +0200)
committer
Milian Wolff
<mail@milianw.de>
Mon, 15 Jun 2015 20:42:41 +0000
(22:42 +0200)
libheaptrack.cpp
patch
|
blob
|
history
diff --git
a/libheaptrack.cpp
b/libheaptrack.cpp
index
1e0f65b
..
85989a8
100644
(file)
--- a/
libheaptrack.cpp
+++ b/
libheaptrack.cpp
@@
-62,8
+62,13
@@
enum DebugVerbosity
VeryVerboseOutput,
};
+// change this to add more debug output to stderr
constexpr const DebugVerbosity s_debugVerbosity = NoDebugOutput;
+/**
+ * Call this to optionally show debug information but give the compiler
+ * a hand in removing it all if debug output is disabled.
+ */
template<DebugVerbosity debugLevel, typename... Args>
inline void debugLog(const char fmt[], Args... args)
{