Steve Dower | d81431f | 2015-03-06 14:47:02 -0800 | [diff] [blame] | 1 | #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 | |
| 11 | static 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 Dower | 8fc8980 | 2015-04-12 00:26:27 -0400 | [diff] [blame] | 18 | _invalid_parameter_handler _Py_silent_invalid_parameter_handler = _silent_invalid_parameter_handler; |
| 19 | |
Steve Dower | d81431f | 2015-03-06 14:47:02 -0800 | [diff] [blame] | 20 | #endif |
| 21 | |
| 22 | #endif |