Kaydet (Commit) 283f3f8a authored tarafından Victor Stinner's avatar Victor Stinner

Issue #23571: Oops, fix #ifdef assert()

assert() are noop when NDEBUG is defined. We want the opposite.
üst 80113822
...@@ -2078,7 +2078,7 @@ _Py_CheckFunctionResult(PyObject *result, const char *func_name) ...@@ -2078,7 +2078,7 @@ _Py_CheckFunctionResult(PyObject *result, const char *func_name)
{ {
int err_occurred = (PyErr_Occurred() != NULL); int err_occurred = (PyErr_Occurred() != NULL);
#ifdef NDEBUG #ifndef NDEBUG
/* In debug mode: abort() with an assertion error. Use two different /* In debug mode: abort() with an assertion error. Use two different
assertions, so if an assertion fails, it's possible to know assertions, so if an assertion fails, it's possible to know
if result was set or not and if an exception was raised or not. */ if result was set or not and if an exception was raised or not. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment