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

assert() are noop when NDEBUG is defined. We want the opposite.
This commit is contained in:
Victor Stinner 2015-03-09 15:55:37 +01:00
parent 8011382285
commit 283f3f8ab3
1 changed files with 1 additions and 1 deletions

View File

@ -2078,7 +2078,7 @@ _Py_CheckFunctionResult(PyObject *result, const char *func_name)
{
int err_occurred = (PyErr_Occurred() != NULL);
#ifdef NDEBUG
#ifndef NDEBUG
/* In debug mode: abort() with an assertion error. Use two different
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. */