feat: adds strip_calls accessors
This commit is contained in:
parent
14047bdde4
commit
4a87e4abab
1 changed files with 7 additions and 0 deletions
|
|
@ -530,6 +530,11 @@ class clutchlog
|
||||||
void depth_mark(const std::string mark) {_depth_mark = mark;}
|
void depth_mark(const std::string mark) {_depth_mark = mark;}
|
||||||
//! Get the string mark with which stack depth is indicated.
|
//! Get the string mark with which stack depth is indicated.
|
||||||
std::string depth_mark() const {return _depth_mark;}
|
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
|
#endif
|
||||||
#if CLUTCHLOG_HAVE_UNIX_SYSIOCTL == 1
|
#if CLUTCHLOG_HAVE_UNIX_SYSIOCTL == 1
|
||||||
//! Set the character for the stretching hfill marker.
|
//! Set the character for the stretching hfill marker.
|
||||||
|
|
@ -956,6 +961,8 @@ class clutchlog
|
||||||
|
|
||||||
void depth_mark(const std::string) {}
|
void depth_mark(const std::string) {}
|
||||||
std::string depth_mark() const {}
|
std::string depth_mark() const {}
|
||||||
|
void strip_calls(const size_t) {}
|
||||||
|
size_t strip_calls() const {}
|
||||||
#endif
|
#endif
|
||||||
#if CLUTCHLOG_HAVE_UNIX_SYSIOCTL == 1
|
#if CLUTCHLOG_HAVE_UNIX_SYSIOCTL == 1
|
||||||
void hfill_mark(const char) {}
|
void hfill_mark(const char) {}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue