C++: Add PlatformInformation and LoadResource as reserved symbols

This commit is contained in:
Katy Coe
2020-07-25 16:55:16 +02:00
parent 271a85b7f1
commit cf6b64e0d2

View File

@@ -542,7 +542,7 @@ namespace Il2CppInspector.Cpp
} }
/* Reserve commonly defined C++ symbols for MSVC DLL projects */ /* Reserve commonly defined C++ symbols for MSVC DLL projects */
/* This is not an exhaustive list! (windows.h etc.) */ /* This is not an exhaustive list! (windows.h etc.) */
foreach (var symbol in new[] {"_int32", "DEFAULT_CHARSET", "FILETIME", "NULL", "SYSTEMTIME", "stderr", "stdin", "stdout", "Sleep"}) { foreach (var symbol in new[] {"_int32", "DEFAULT_CHARSET", "FILETIME", "NULL", "SYSTEMTIME", "stderr", "stdin", "stdout", "Sleep", "PlatformInformation", "LoadResource"}) {
ns.ReserveName(symbol); ns.ReserveName(symbol);
} }
/* Reserve builtin keywords in IDA */ /* Reserve builtin keywords in IDA */