diff -r a1d87e8fff6d -r 18741059da47 src/cx/utils.h --- a/src/cx/utils.h Tue Oct 29 18:15:06 2024 +0100 +++ b/src/cx/utils.h Tue Oct 29 18:46:50 2024 +0100 @@ -50,15 +50,6 @@ */ #define cx_for_n(varname, n) for (size_t varname = 0 ; (varname) < (n) ; (varname)++) -/** - * Convenience macro for swapping two pointers. - */ -#ifdef __cplusplus -#define cx_swap_ptr(left, right) do {auto cx_tmp_swap_var = left; left = right; right = cx_tmp_swap_var;} while(0) -#else -#define cx_swap_ptr(left, right) do {void *cx_tmp_swap_var = left; left = right; right = cx_tmp_swap_var;} while(0) -#endif - // cx_szmul() definition #if (__GNUC__ >= 5 || defined(__clang__)) && !defined(CX_NO_SZMUL_BUILTIN)