From 080428d3f7cd882b2576bd47db6e29e2ecb36659 Mon Sep 17 00:00:00 2001 From: igo95862 Date: Sat, 3 Apr 2021 18:00:06 +0300 Subject: [PATCH] python: Renamed check macros to use GNU prefix Since they use GNU extensions. This reduces the collision probability with the Python header. --- python/notcurses/notcurses-python.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/notcurses/notcurses-python.h b/python/notcurses/notcurses-python.h index 07cec5b05..71395f7b7 100644 --- a/python/notcurses/notcurses-python.h +++ b/python/notcurses/notcurses-python.h @@ -143,7 +143,7 @@ static inline void PyObject_cleanup(PyObject **object) #define CLEANUP_PY_OBJ __attribute__((cleanup(PyObject_cleanup))) -#define PY_CHECK(py_function) \ +#define GNU_PY_CHECK(py_function) \ ({ \ PyObject *new_object = py_function; \ if (new_object == NULL) \ @@ -153,7 +153,7 @@ static inline void PyObject_cleanup(PyObject **object) new_object; \ }) -#define PY_CHECK_INT(py_function) \ +#define GNU_PY_CHECK_INT(py_function) \ ({ \ int return_value = py_function; \ if (return_value < 0) \