blob: d634710cbec71439446067f2fd8df8d78998b5d2 [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
Steve Dower8fc89802015-04-12 00:26:27 -040018_invalid_parameter_handler _Py_silent_invalid_parameter_handler = _silent_invalid_parameter_handler;
19
Steve Dowerd81431f2015-03-06 14:47:02 -080020#endif
21
22#endif