Make G_FUZZING constexpr, require -DBUILD_FOR_FUZZING=ON to execute a fuzz target

This commit is contained in:
MarcoFalke
2024-10-31 13:53:48 +01:00
parent fae3cf0ffa
commit fafbf8acf4
5 changed files with 17 additions and 7 deletions

View File

@@ -14,8 +14,6 @@
#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"