Mercurial > cpython-lru_cache-weakref
diff Include/Python.h @ 72475:8beaa9a37387
Implement PEP 393.
| author | Martin v. Löwis <martin@v.loewis.de> |
|---|---|
| date | Wed, 28 Sep 2011 07:41:54 +0200 |
| parents | 0aa3f90f0830 |
| children | dacac31460c0 |
line wrap: on
line diff
--- a/Include/Python.h Tue Sep 27 20:52:04 2011 -0500 +++ b/Include/Python.h Wed Sep 28 07:41:54 2011 +0200 @@ -160,4 +160,9 @@ #define PyDoc_STR(str) "" #endif +#define PY_ARRAY_LENGTH(array) (sizeof(array) / sizeof((array)[0])) + +#define PY_MIN(x, y) (((x) > (y)) ? (y) : (x)) +#define PY_MAX(x, y) (((x) > (y)) ? (x) : (y)) + #endif /* !Py_PYTHON_H */
