From 4a87e4abab1b7e11506ef6f06cd3c8d915520585 Mon Sep 17 00:00:00 2001 From: nojhan Date: Wed, 7 Sep 2022 22:45:33 +0200 Subject: [PATCH] feat: adds strip_calls accessors --- clutchlog/clutchlog.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/clutchlog/clutchlog.h b/clutchlog/clutchlog.h index bbf8a04..134792a 100644 --- a/clutchlog/clutchlog.h +++ b/clutchlog/clutchlog.h @@ -530,6 +530,11 @@ class clutchlog void depth_mark(const std::string mark) {_depth_mark = mark;} //! Get the string mark with which stack depth is indicated. std::string depth_mark() const {return _depth_mark;} + + //! Set the number of stack calls which are removed for computing depth. */ + void strip_calls(const size_t n) {_strip_calls = n;} + //! Get the number of stack calls which are removed for computing depth. */ + size_t strip_calls() const {return _strip_calls;} #endif #if CLUTCHLOG_HAVE_UNIX_SYSIOCTL == 1 //! Set the character for the stretching hfill marker. @@ -956,6 +961,8 @@ class clutchlog void depth_mark(const std::string) {} std::string depth_mark() const {} + void strip_calls(const size_t) {} + size_t strip_calls() const {} #endif #if CLUTCHLOG_HAVE_UNIX_SYSIOCTL == 1 void hfill_mark(const char) {}