dbgrptw.c

来自「C语言库函数的原型,有用的拿去」· C语言 代码 · 共 56 行

C
56
字号
/***
*dbgrptw.c - Debug CRT Reporting Functions
*
*       Copyright (c) Microsoft Corporation. All rights reserved.
*
*Purpose:
*
*******************************************************************************/


#ifndef _UNICODE
#define _UNICODE 1
#endif  /* _UNICODE */

#ifndef UNICODE
#define UNICODE 1
#endif  /* UNICODE */

#include "dbgrpt.c"

#ifdef _DEBUG

#ifdef __cplusplus

#if defined (_NATIVE_WCHAR_T_DEFINED)

extern "C++"
_CRTIMP int __cdecl _CrtDbgReportW(
        int nRptType,
        const unsigned short * szFile,
        int nLine,
        const unsigned short * szModule,
        const unsigned short * szFormat,
        ...
        )
{
    int retval;
    va_list arglist;

    va_start(arglist,szFormat);

    retval = _CrtDbgReportTV(nRptType, reinterpret_cast<const wchar_t*>(szFile), nLine, reinterpret_cast<const wchar_t*>(szModule), reinterpret_cast<const wchar_t*>(szFormat), arglist);

    va_end(arglist);

    return retval;
}

#endif  /* defined (_NATIVE_WCHAR_T_DEFINED) */

#endif  /* __cplusplus */

#endif  /* _DEBUG */


⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?