diff options
author | Ben Burdette <bburdette@gmail.com> | 2021-09-13 11:57:25 -0600 |
---|---|---|
committer | Ben Burdette <bburdette@gmail.com> | 2021-09-13 11:57:25 -0600 |
commit | 176911102ce2c0be06bbfed9099f364d71c3c679 (patch) | |
tree | e8b0c12410c5126d57313601ba73c0afdc5e8851 /src/libutil | |
parent | 310c689d317d1eb4bcf50cd11d84165fe2ffd512 (diff) |
printEnvPosChain
Diffstat (limited to 'src/libutil')
-rw-r--r-- | src/libutil/error.hh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libutil/error.hh b/src/libutil/error.hh index ff58d3e00..b6670c8b2 100644 --- a/src/libutil/error.hh +++ b/src/libutil/error.hh @@ -100,6 +100,12 @@ struct ErrPos { } }; +std::optional<LinesOfCode> getCodeLines(const ErrPos & errPos); +void printCodeLines(std::ostream & out, + const string & prefix, + const ErrPos & errPos, + const LinesOfCode & loc); + struct Trace { std::optional<ErrPos> pos; hintformat hint; |