Add button to test user asserts

This commit is contained in:
blankie 2023-01-21 11:42:59 +07:00
parent 01b2330ebc
commit ae0e97a27f
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
1 changed files with 3 additions and 0 deletions

View File

@ -170,6 +170,9 @@ static inline void debug_window(LogcatThread& logcat_thread) {
if (ImGui::Button("Add Log Entry with Newlines")) {
log("The following should have five spaces: \"\n\n\n\n\n\"");
}
if (ImGui::Button("Test user assert")) {
IM_ASSERT_USER_ERROR(0, "User assert tested");
}
if (ImGui::Button("Request log entry from Logcat thread")) {
logcat_thread.debug_log_request.test_and_set();
}