mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
bpo-36763, _testembed: enable assert() in release mode (GH-13857)
(cherry picked from commit 013a18a651
)
Co-authored-by: Victor Stinner <vstinner@redhat.com>
This commit is contained in:
parent
23f41a64ea
commit
406284173a
1 changed files with 5 additions and 2 deletions
|
@ -1,10 +1,13 @@
|
||||||
/* FIXME: PEP 587 makes these functions public */
|
|
||||||
#ifndef Py_BUILD_CORE_MODULE
|
#ifndef Py_BUILD_CORE_MODULE
|
||||||
# define Py_BUILD_CORE_MODULE
|
# define Py_BUILD_CORE_MODULE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
/* Always enable assertion (even in release mode) */
|
||||||
|
#undef NDEBUG
|
||||||
|
|
||||||
#include <Python.h>
|
#include <Python.h>
|
||||||
#include "pycore_initconfig.h" /* FIXME: PEP 587 makes these functions public */
|
#include "pycore_initconfig.h" /* _PyConfig_InitCompatConfig() */
|
||||||
|
#include "pycore_pystate.h" /* _PyRuntime */
|
||||||
#include <Python.h>
|
#include <Python.h>
|
||||||
#include "pythread.h"
|
#include "pythread.h"
|
||||||
#include <inttypes.h>
|
#include <inttypes.h>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue