summaryrefslogtreecommitdiffstats
path: root/src/util.cpp
diff options
context:
space:
mode:
authorMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-09-12 11:29:26 +0200
committerMarcus Fritzsch <marcus_fritzsch@mentor.com>2017-09-12 11:29:26 +0200
commit2b546956a800545bdda2be9682fac21fd1e86736 (patch)
treef888cc8962ac9bb00a25b8f7143da7ad56e8fe3a /src/util.cpp
parent30c368c0f6e15890a5a6bd27d4ae4175116b02b6 (diff)
util: add scope tracer utility (hack, but more or less useful)
Signed-off-by: Marcus Fritzsch <marcus_fritzsch@mentor.com>
Diffstat (limited to 'src/util.cpp')
-rw-r--r--src/util.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/util.cpp b/src/util.cpp
index 1f2bc05..db61bc2 100644
--- a/src/util.cpp
+++ b/src/util.cpp
@@ -24,6 +24,8 @@
#include <unistd.h>
+thread_local int ScopeTrace::indent = 0;
+
unique_fd::~unique_fd() {
if (this->fd != -1) {
close(this->fd);