invalid_parameter_handler.c 549 B

12345678910111213141516171819202122
  1. #ifdef _MSC_VER
  2. #include <stdlib.h>
  3. #if _MSC_VER >= 1900
  4. /* pyconfig.h uses this function in the _Py_BEGIN/END_SUPPRESS_IPH
  5. * macros. It does not need to be defined when building using MSVC
  6. * earlier than 14.0 (_MSC_VER == 1900).
  7. */
  8. static void __cdecl _silent_invalid_parameter_handler(
  9. wchar_t const* expression,
  10. wchar_t const* function,
  11. wchar_t const* file,
  12. unsigned int line,
  13. uintptr_t pReserved) { }
  14. _invalid_parameter_handler _Py_silent_invalid_parameter_handler = _silent_invalid_parameter_handler;
  15. #endif
  16. #endif