FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

bpo-36763, _testembed: enable assert() in release mode (GH-13857) · python/cpython@4062841 · GitHub

/ cpython Public

Commit 4062841

Browse files
bpo-36763, _testembed: enable assert() in release mode (GH-13857)
(cherry picked from commit 013a18a) Co-authored-by: Victor Stinner <vstinner@redhat.com>
1 parent 23f41a6 commit 4062841

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

‎Programs/_testembed.c‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1-
/* FIXME: PEP 587 makes these functions public */
21
#ifndef Py_BUILD_CORE_MODULE
32
# define Py_BUILD_CORE_MODULE
43
#endif
54

5+
/* Always enable assertion (even in release mode) */
6+
#undef NDEBUG
7+
68
#include <Python.h>
7-
#include "pycore_initconfig.h" /* FIXME: PEP 587 makes these functions public */
9+
#include "pycore_initconfig.h" /* _PyConfig_InitCompatConfig() */
10+
#include "pycore_pystate.h" /* _PyRuntime */
811
#include <Python.h>
912
#include "pythread.h"
1013
#include <inttypes.h>

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL