yaze
0.3.2
Link to the Past ROM Editor
Loading...
Searching...
No Matches
imgui_diagnostics.cc
Go to the documentation of this file.
1
#include "
app/gui/core/imgui_diagnostics.h
"
2
3
namespace
yaze
{
4
namespace
gui {
5
6
void
ConfigureImGuiDiagnostics
(ImGuiIO& io,
ImGuiDiagnosticsBuild
build) {
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
22
void
ConfigureImGuiDiagnostics
(ImGuiIO& io) {
23
#ifdef NDEBUG
24
ConfigureImGuiDiagnostics
(io,
ImGuiDiagnosticsBuild::kRelease
);
25
#else
26
ConfigureImGuiDiagnostics
(io,
ImGuiDiagnosticsBuild::kDebug
);
27
#endif
28
}
29
30
}
// namespace gui
31
}
// namespace yaze
imgui_diagnostics.h
yaze::gui::ImGuiDiagnosticsBuild
ImGuiDiagnosticsBuild
Which set of Dear ImGui diagnostics a build gets.
Definition
imgui_diagnostics.h:13
yaze::gui::ImGuiDiagnosticsBuild::kRelease
@ kRelease
yaze::gui::ImGuiDiagnosticsBuild::kDebug
@ kDebug
yaze::gui::ConfigureImGuiDiagnostics
void ConfigureImGuiDiagnostics(ImGuiIO &io, ImGuiDiagnosticsBuild build)
Set Dear ImGui's error-recovery and ID-conflict options.
Definition
imgui_diagnostics.cc:6
yaze
Definition
patch_export_usage.cc:8
src
app
gui
core
imgui_diagnostics.cc
Generated by
1.10.0