Added plat_break() for raising breakpoints and warning() and log_warning() to raise visible non-fatal warnings to the user.

This commit is contained in:
OBattler
2025-03-22 00:49:20 +01:00
parent 6df6eae482
commit 63f106a0fd
6 changed files with 108 additions and 5 deletions

View File

@@ -842,3 +842,13 @@ plat_set_thread_name(void *thread, const char *name)
# endif
#endif
}
void
plat_break(void)
{
#ifdef Q_OS_WINDOWS
DebugBreak();
#else
raise(SIGTRAP);
#endif
}