C++: Add 'Sleep' as a reserved keyword

This commit is contained in:
Katy Coe
2020-07-24 17:40:30 +02:00
parent d09d53cc67
commit cd75d5e877

View File

@@ -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 */