AsmGrader 0.0.0
Loading...
Searching...
No Matches
debug.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <fmt/base.h>
4#include <fmt/format.h>
5
6namespace asmgrader {
7
9{
10 bool is_debug_format = false;
11
12 constexpr auto parse(fmt::format_parse_context& ctx) {
13 const auto* it = ctx.begin();
14 const auto* end = ctx.end();
15
16 if (it != end && *it == '?') {
17 is_debug_format = true;
18 ++it;
19 }
20
21 return it;
22 }
23};
24
25} // namespace asmgrader
Definition asm_buffer.hpp:20
Definition debug.hpp:9
constexpr auto parse(fmt::format_parse_context &ctx)
Definition debug.hpp:12
bool is_debug_format
Definition debug.hpp:10
std::size_t end
End of the block, non-inclusive i.e. of the final ` delimiter Will be the same as end_delim for now.
Definition syntax_highlighter.cpp:152