Staging
v0.5.1
https://github.com/python/cpython
Revision 744129db5d4e7706fd7d46dfc691aa47fabd66fa authored by Miss Islington (bot) on 13 May 2019, 15:39:50 UTC, committed by Victor Stinner on 13 May 2019, 15:39:50 UTC
(cherry picked from commit 2c10538d11fa9be9a1a9f21605861e10ec4fa207)

Co-authored-by: Xtreak <tir.karthi@gmail.com>
1 parent 074d7c4
Raw File
Tip revision: 744129db5d4e7706fd7d46dfc691aa47fabd66fa authored by Miss Islington (bot) on 13 May 2019, 15:39:50 UTC
bpo-36903: Fix ResourceWarning in test_logging (GH-13283) (GH-13285)
Tip revision: 744129d
invalid_parameter_handler.c
#ifdef _MSC_VER

#include <stdlib.h>

#if _MSC_VER >= 1900
/* pyconfig.h uses this function in the _Py_BEGIN/END_SUPPRESS_IPH
 * macros. It does not need to be defined when building using MSVC
 * earlier than 14.0 (_MSC_VER == 1900).
 */

static void __cdecl _silent_invalid_parameter_handler(
    wchar_t const* expression,
    wchar_t const* function,
    wchar_t const* file,
    unsigned int line,
    uintptr_t pReserved) { }

_invalid_parameter_handler _Py_silent_invalid_parameter_handler = _silent_invalid_parameter_handler;

#endif

#endif
back to top