src/snippets/snippet.hpp
raw| 1 | #ifndef SNIPPET_HPP |
| 2 | #define SNIPPET_HPP |
| 3 | |
| 4 | #include <cstddef> |
| 5 | #include <string> |
| 6 | |
| 7 | #include <cpptrace/basic.hpp> |
| 8 | |
| 9 | CPPTRACE_BEGIN_NAMESPACE |
| 10 | namespace detail { |
| 11 | // 1-indexed line |
| 12 | std::string get_snippet( |
| 13 | const std::string& path, |
| 14 | std::size_t line, |
| 15 | nullable<std::uint32_t> column, |
| 16 | std::size_t context_size, |
| 17 | bool color |
| 18 | ); |
| 19 | } |
| 20 | CPPTRACE_END_NAMESPACE |
| 21 | |
| 22 | #endif |