summaryrefslogtreecommitdiffstats
path: root/Python/ceval_macros.h
diff options
context:
space:
mode:
Diffstat (limited to 'Python/ceval_macros.h')
-rw-r--r--Python/ceval_macros.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Python/ceval_macros.h b/Python/ceval_macros.h
index d7a8f0b..691bf8e 100644
--- a/Python/ceval_macros.h
+++ b/Python/ceval_macros.h
@@ -347,3 +347,6 @@ GETITEM(PyObject *v, Py_ssize_t i) {
} while (0);
#define NAME_ERROR_MSG "name '%.200s' is not defined"
+
+#define KWNAMES_LEN() \
+ (kwnames == NULL ? 0 : ((int)PyTuple_GET_SIZE(kwnames)))