yaze 0.3.2
Link to the Past ROM Editor
 
Loading...
Searching...
No Matches
imgui_diagnostics.cc
Go to the documentation of this file.
2
3namespace yaze {
4namespace gui {
5
7 const bool debug_build = build == ImGuiDiagnosticsBuild::kDebug;
8
9 // ImGui requires at least one of assert, log or tooltip while recovery is
10 // on. Log and tooltip stay on in every build so a release build still
11 // shows the error after the assert is turned off.
12 io.ConfigErrorRecovery = true;
13 io.ConfigErrorRecoveryEnableDebugLog = true;
14 io.ConfigErrorRecoveryEnableTooltip = true;
15 io.ConfigErrorRecoveryEnableAssert = debug_build;
16
17 // ImGui's own guidance is to turn the ID-conflict popup off for
18 // non-programmer builds.
19 io.ConfigDebugHighlightIdConflicts = debug_build;
20}
21
29
30} // namespace gui
31} // namespace yaze
ImGuiDiagnosticsBuild
Which set of Dear ImGui diagnostics a build gets.
void ConfigureImGuiDiagnostics(ImGuiIO &io, ImGuiDiagnosticsBuild build)
Set Dear ImGui's error-recovery and ID-conflict options.