Skip to content

Commit 7c29575

Browse files
committed
Use NDEBUG
1 parent fdff39b commit 7c29575

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Objects/moduleobject.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ assert_def_missing_or_redundant(PyModuleObject *m) {
3333
* Modules created using a def keep a reference to that (statically
3434
* allocated) def; the info there should match what we have in the module.
3535
*/
36-
#ifdef Py_DEBUG
36+
#ifdef NDEBUG
3737
if (m->md_token_is_def) {
3838
PyModuleDef *def = (PyModuleDef *)m->md_token;
3939
assert(def);
@@ -44,7 +44,7 @@ assert_def_missing_or_redundant(PyModuleObject *m) {
4444
DO_ASSERT(free);
4545
#undef DO_ASSERT
4646
}
47-
#endif // Py_DEBUG
47+
#endif // NDEBUG
4848
}
4949

5050

0 commit comments

Comments
 (0)