diff options
author | Ben Burdette <bburdette@gmail.com> | 2021-12-22 19:40:08 -0700 |
---|---|---|
committer | Ben Burdette <bburdette@gmail.com> | 2021-12-22 19:40:08 -0700 |
commit | bc20e54e0044e08c68a7af1f1e12d001baba8a74 (patch) | |
tree | a227c29ff500724fae6864d5ed353a193940667f /src/libutil/error.hh | |
parent | b4a59a5eec5bdb94ee2bbc8365f024d5787abd60 (diff) |
stack traces basically working
Diffstat (limited to 'src/libutil/error.hh')
-rw-r--r-- | src/libutil/error.hh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libutil/error.hh b/src/libutil/error.hh index b6670c8b2..06301f709 100644 --- a/src/libutil/error.hh +++ b/src/libutil/error.hh @@ -106,6 +106,9 @@ void printCodeLines(std::ostream & out, const ErrPos & errPos, const LinesOfCode & loc); +void printAtPos(const ErrPos & pos, std::ostream & out); + + struct Trace { std::optional<ErrPos> pos; hintformat hint; |