Skip to content

Commit

Permalink
Merge pull request #44 from ogdf/make-skip-public
Browse files Browse the repository at this point in the history
Make StackTraceImpl*::skip_n_firsts() setter public
  • Loading branch information
bombela authored Nov 17, 2016
2 parents 6c57396 + f046d0d commit e371aa9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion backward.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -496,6 +496,7 @@ class StackTraceImpl {
size_t load_here(size_t=0) { return 0; }
size_t load_from(void*, size_t=0) { return 0; }
unsigned thread_id() const { return 0; }
void skip_n_firsts(size_t) { }
};

#ifdef BACKWARD_SYSTEM_LINUX
Expand All @@ -508,6 +509,8 @@ class StackTraceLinuxImplBase {
return _thread_id;
}

void skip_n_firsts(size_t n) { _skip = n; }

protected:
void load_thread_info() {
_thread_id = syscall(SYS_gettid);
Expand All @@ -518,7 +521,6 @@ class StackTraceLinuxImplBase {
}
}

void skip_n_firsts(size_t n) { _skip = n; }
size_t skip_n_firsts() const { return _skip; }

private:
Expand Down

0 comments on commit e371aa9

Please sign in to comment.