1 | #ifndef SASS_BACKTRACE_H |
---|---|
2 | #define SASS_BACKTRACE_H |
3 | |
4 | #include <vector> |
5 | #include <sstream> |
6 | #include "file.hpp" |
7 | #include "position.hpp" |
8 | |
9 | namespace Sass { |
10 | |
11 | struct Backtrace { |
12 | |
13 | SourceSpan pstate; |
14 | sass::string caller; |
15 | |
16 | Backtrace(SourceSpan pstate, sass::string c = "") |
17 | : pstate(pstate), |
18 | caller(c) |
19 | { } |
20 | |
21 | }; |
22 | |
23 | typedef sass::vector<Backtrace> Backtraces; |
24 | |
25 | const sass::string traces_to_string(Backtraces traces, sass::string indent = "\t"); |
26 | |
27 | } |
28 | |
29 | #endif |
30 |