Skip to content
This repository has been archived by the owner on Oct 14, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1 from mysty0/master
Browse files Browse the repository at this point in the history
C++: Fix Il2CppDecimal declaration and add missing  reserved symbols
  • Loading branch information
therealchjones authored Feb 15, 2023
2 parents 116c635 + 29dfa61 commit 5d140db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Il2CppInspector.Common/Cpp/CppDeclarationGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ private static CppNamespace CreateNamespace() {
}
/* 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[] { "_int8", "_int16", "_int32", "_int64", "DEFAULT_CHARSET", "FILETIME", "NULL", "SYSTEMTIME", "stderr", "stdin", "stdout"}) {
ns.ReserveName(symbol);
}
/* Reserve builtin keywords in IDA */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1868,7 +1868,7 @@ struct Il2CppDecimal
} v;
uint64_t Lo64;
} v;
} Il2CppClass;
};
typedef struct Il2CppDouble
{
uint32_t mantLo : 32;
Expand Down

0 comments on commit 5d140db

Please sign in to comment.