bpo-39849: Enable assertions in _testcapimodule.c and _testinternalcapi.c (GH-19623)

This commit is contained in:
Hai Shi 2020-04-21 00:49:13 +08:00 committed by GitHub
parent 9b0b5d2bae
commit 5dd21f5d1c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -10,7 +10,10 @@
The Visual Studio projects builds _testcapi with Py_BUILD_CORE_MODULE
macro defined, but only the public C API must be tested here. */
#undef Py_BUILD_CORE_MODULE
/* Always enable assertions */
#undef NDEBUG
#define PY_SSIZE_T_CLEAN

View File

@ -6,6 +6,9 @@
# error "Py_BUILD_CORE_BUILTIN or Py_BUILD_CORE_MODULE must be defined"
#endif
/* Always enable assertions */
#undef NDEBUG
#define PY_SSIZE_T_CLEAN
#include "Python.h"