fix compile, fix clang-format, add demo window debug setting, add setting to stop at entry or go to main directly

This commit is contained in:
T0b1
2024-05-03 02:19:47 +02:00
parent d4e4fc8c5a
commit 608cec26b1
9 changed files with 39 additions and 13 deletions

View File

@@ -908,6 +908,8 @@ bool SourceWindow::draw(Frontend &frontend)
ImGui::GetWindowDrawList()->AddTriangleFilled(
pos, p2, p3, IM_COL32(227, 197, 103, 255));
ImGui::TableSetBgColor(ImGuiTableBgTarget_RowBg0,
ImGui::GetColorU32(ImVec4(1.f, 1.f, 1.f, 0.2f)));
}
// TODO: write custom code to catch mouse clicks in the whole cell, including padding
@@ -1374,7 +1376,8 @@ void WatchWindow::draw_value(Frontend &frontend,
}
expr_path.push_back(ExprPathPart{
.ident = std::string_view{name_begin, name_end - name_begin},
.ident = std::string_view{name_begin, static_cast<size_t>(
name_end - name_begin)},
.deref = false});
this->draw_value(frontend, member.type_id, member.name, node_idx,
off + member.offset, expr_path);
@@ -1390,7 +1393,8 @@ void WatchWindow::draw_value(Frontend &frontend,
frontend.target->types[type_id.idx].byte_size / member_size;
expr_path.push_back(ExprPathPart{
.ident = std::string_view{name_begin, name_end - name_begin},
.ident = std::string_view{name_begin,
static_cast<size_t>(name_end - name_begin)},
.array = true});
char buf[32];