From cd75d5e877fd0a2a999cb81b3dd4c9e3f829e69a Mon Sep 17 00:00:00 2001 From: Katy Coe Date: Fri, 24 Jul 2020 17:40:30 +0200 Subject: [PATCH] C++: Add 'Sleep' as a reserved keyword --- Il2CppInspector.Common/Cpp/CppDeclarationGenerator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Il2CppInspector.Common/Cpp/CppDeclarationGenerator.cs b/Il2CppInspector.Common/Cpp/CppDeclarationGenerator.cs index e9eb0f7..089b8e6 100644 --- a/Il2CppInspector.Common/Cpp/CppDeclarationGenerator.cs +++ b/Il2CppInspector.Common/Cpp/CppDeclarationGenerator.cs @@ -542,7 +542,7 @@ namespace Il2CppInspector.Cpp } /* Reserve commonly defined C++ symbols for MSVC DLL projects */ /* This is not an exhaustive list! (windows.h etc.) */ - foreach (var symbol in new[] {"_int32", "DEFAULT_CHARSET", "FILETIME", "NULL", "SYSTEMTIME", "stderr", "stdin", "stdout"}) { + foreach (var symbol in new[] {"_int32", "DEFAULT_CHARSET", "FILETIME", "NULL", "SYSTEMTIME", "stderr", "stdin", "stdout", "Sleep"}) { ns.ReserveName(symbol); } /* Reserve builtin keywords in IDA */