[Python-checkins] closes gh-106479: fix typo in __cplusplus macro (gh-106480)

benjaminp webhook-mailer at python.org
Thu Jul 6 18:34:04 EDT 2023


https://github.com/python/cpython/commit/67a798888dcde13bbb1e17cfcc3c742c94e67a07
commit: 67a798888dcde13bbb1e17cfcc3c742c94e67a07
branch: main
author: Dustin Rodrigues <dust.rod at gmail.com>
committer: benjaminp <benjamin at locrian.net>
date: 2023-07-06T17:34:00-05:00
summary:

closes gh-106479: fix typo in __cplusplus macro (gh-106480)

files:
M Lib/test/_testcppext.cpp

diff --git a/Lib/test/_testcppext.cpp b/Lib/test/_testcppext.cpp
index 0e381a78c5cee..82b471312dd2b 100644
--- a/Lib/test/_testcppext.cpp
+++ b/Lib/test/_testcppext.cpp
@@ -86,7 +86,7 @@ test_api_casts(PyObject *Py_UNUSED(module), PyObject *Py_UNUSED(args))
     // gh-93442: Pass 0 as NULL for PyObject*
     Py_XINCREF(0);
     Py_XDECREF(0);
-#if _cplusplus >= 201103
+#if __cplusplus >= 201103
     // Test nullptr passed as PyObject*
     Py_XINCREF(nullptr);
     Py_XDECREF(nullptr);



More information about the Python-checkins mailing list