blob: 3bc0104f8dde835a0e4991e653caeff330ffc4d8 [file] [log] [blame]
Steve Dowerd81431f2015-03-06 14:47:02 -08001#ifdef _MSC_VER
2
3#include <stdlib.h>
4
5#if _MSC_VER >= 1900
6/* pyconfig.h uses this function in the _Py_BEGIN/END_SUPPRESS_IPH
7 * macros. It does not need to be defined when building using MSVC
8 * earlier than 14.0 (_MSC_VER == 1900).
9 */
10
11static void __cdecl _silent_invalid_parameter_handler(
12 wchar_t const* expression,
13 wchar_t const* function,
14 wchar_t const* file,
15 unsigned int line,
16 uintptr_t pReserved) { }
17
18void *_Py_silent_invalid_parameter_handler =
19 (void*)_silent_invalid_parameter_handler;
20#endif
21
22#endif