mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 07:03:10 +00:00
[SDK][CRT][MSVCRT] Implement _CrtSetReportMode and _CrtSetReportFile (#5662)
- Implement reporting to file. CORE-11835, CORE-15517, ROSTESTS-386
This commit is contained in:
parent
993a45024e
commit
85377ee3db
4 changed files with 64 additions and 14 deletions
|
@ -91,8 +91,6 @@ extern "C" {
|
|||
#endif
|
||||
|
||||
|
||||
|
||||
|
||||
// Assertion and error reporting
|
||||
|
||||
#ifndef _DEBUG
|
||||
|
@ -124,6 +122,8 @@ extern "C" {
|
|||
#define _RPTFW0(rptno,msg)
|
||||
#define _RPTFWN(rptno,msg,...)
|
||||
|
||||
#define _CrtSetReportMode(t,f) ((int)0)
|
||||
#define _CrtSetReportFile(t,f) ((_HFILE)0)
|
||||
|
||||
#else // _DEBUG
|
||||
|
||||
|
@ -161,6 +161,9 @@ extern "C" {
|
|||
#define _RPTFW0(rptno,msg) _RPT_BASEW(rptno, _CRT_WIDE(__FILE__), __LINE__, NULL, L"%s", msg)
|
||||
#define _RPTFWN(rptno,msg,...) _RPT_BASEW(rptno, _CRT_WIDE(__FILE__), __LINE__, NULL, msg, __VA_ARGS__)
|
||||
|
||||
int __cdecl _CrtSetReportMode(int reportType, int reportMode);
|
||||
_HFILE __cdecl _CrtSetReportFile(int reportType, _HFILE reportFile);
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
|
@ -230,8 +233,6 @@ extern "C" {
|
|||
#define _CrtGetReportHook() ((_CRT_REPORT_HOOK)0)
|
||||
#define _CrtSetReportHook2(t,f) ((int)0)
|
||||
#define _CrtSetReportHookW2(t,f) ((int)0)
|
||||
#define _CrtSetReportMode(t,f) ((int)0)
|
||||
#define _CrtSetReportFile(t,f) ((_HFILE)0)
|
||||
|
||||
#define _CrtSetBreakAlloc(a) ((long)0)
|
||||
#define _CrtSetAllocHook(f) ((_CRT_ALLOC_HOOK)0)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue