Introduce g_fuzzing global for fuzzing checks

This commit is contained in:
dergoegge
2024-10-15 12:10:36 +01:00
parent b95adf057a
commit 9f243cd7fa
5 changed files with 9 additions and 10 deletions

View File

@@ -14,6 +14,8 @@
#include <string>
#include <string_view>
bool g_fuzzing = false;
std::string StrFormatInternalBug(std::string_view msg, std::string_view file, int line, std::string_view func)
{
return strprintf("Internal bug detected: %s\n%s:%d (%s)\n"