summaryrefslogtreecommitdiffstats
path: root/Python/ceval_macros.h
diff options
context:
space:
mode:
authorBrandt Bucher <brandtbucher@microsoft.com>2023-09-13 17:25:45 (GMT)
committerGitHub <noreply@github.com>2023-09-13 17:25:45 (GMT)
commit22e65eecaad3f5337862319687047afe9861e1ef (patch)
tree19089993cd9ec4d1930521c1c3df3cb22b0b9ddc /Python/ceval_macros.h
parent987b4bc0870e1e29a88275dc3fa39bf2c3dcc763 (diff)
downloadcpython-22e65eecaad3f5337862319687047afe9861e1ef.zip
cpython-22e65eecaad3f5337862319687047afe9861e1ef.tar.gz
cpython-22e65eecaad3f5337862319687047afe9861e1ef.tar.bz2
GH-105848: Replace KW_NAMES + CALL with LOAD_CONST + CALL_KW (GH-109300)
Diffstat (limited to 'Python/ceval_macros.h')
-rw-r--r--Python/ceval_macros.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/Python/ceval_macros.h b/Python/ceval_macros.h
index f5d9155..012750d 100644
--- a/Python/ceval_macros.h
+++ b/Python/ceval_macros.h
@@ -311,9 +311,6 @@ GETITEM(PyObject *v, Py_ssize_t i) {
" in enclosing scope"
#define NAME_ERROR_MSG "name '%.200s' is not defined"
-#define KWNAMES_LEN() \
- (kwnames == NULL ? 0 : ((int)PyTuple_GET_SIZE(kwnames)))
-
#define DECREF_INPUTS_AND_REUSE_FLOAT(left, right, dval, result) \
do { \
if (Py_REFCNT(left) == 1) { \
@@ -356,8 +353,6 @@ static const convertion_func_ptr CONVERSION_FUNCTIONS[4] = {
[FVC_ASCII] = PyObject_ASCII
};
-#define ASSERT_KWNAMES_IS_NULL() assert(kwnames == NULL)
-
// GH-89279: Force inlining by using a macro.
#if defined(_MSC_VER) && SIZEOF_INT == 4
#define _Py_atomic_load_relaxed_int32(ATOMIC_VAL) (assert(sizeof((ATOMIC_VAL)->_value) == 4), *((volatile int*)&((ATOMIC_VAL)->_value)))