[CRT][MSVCRT] Implement _CrtDbgReport(W)V and redefine _CrtDbgReport(W) around those (#5678)

Also add the internal _VCrtDbgReportA and _VCrtDbgReportW functions listed in
https://learn.microsoft.com/en-us/cpp/c-runtime-library/internal-crt-globals-and-functions?view=msvc-170

CORE-11835, CORE-15517
This commit is contained in:
Hermès Bélusca-Maïto 2023-09-10 19:08:07 +02:00
parent 7901a4c8fe
commit f49e213943
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
4 changed files with 89 additions and 23 deletions

View file

@ -81,6 +81,7 @@ extern "C" {
size_t lTotalCount;
} _CrtMemState;
// Debug reporting functions
#ifdef _DEBUG
@ -88,6 +89,9 @@ extern "C" {
int __cdecl _CrtDbgReport(int reportType, const char *filename, int linenumber, const char *moduleName, const char *format, ...);
int __cdecl _CrtDbgReportW(int reportType, const wchar_t *filename, int linenumber, const wchar_t *moduleName, const wchar_t *format, ...);
int __cdecl _CrtDbgReportV(int reportType, const char *filename, int linenumber, const char *moduleName, const char *format, va_list arglist);
int __cdecl _CrtDbgReportWV(int reportType, const wchar_t *filename, int linenumber, const wchar_t *moduleName, const wchar_t *format, va_list arglist);
#endif