feat: adds strip_calls accessors

This commit is contained in:
Johann Dreo 2022-09-07 22:45:33 +02:00
commit 4a87e4abab

View file

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