From 5c5629ebb387242e99e90ccbd0bb0344c4a393fa Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Thu, 7 Mar 2024 14:05:35 +0100 Subject: Use the __MLIB prefix --- include/__qmacros.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'include/__qmacros.h') diff --git a/include/__qmacros.h b/include/__qmacros.h index d765864..e121e83 100644 --- a/include/__qmacros.h +++ b/include/__qmacros.h @@ -8,16 +8,16 @@ The macros are taken from the N3020 proposal for C23. */ /* clang-format off */ -#define _RUNE_PTR_IS_CONST(P) \ +#define __MLIB_PTR_IS_CONST(P) \ _Generic(1 ? (P) : (void *)(P), \ const void *: 1, \ default: 0) -#define _RUNE_STATIC_IF(P, T, E) \ +#define __MLIB_STATIC_IF(P, T, E) \ _Generic(&(char[!!(P) + 1]){0}, \ char(*)[2]: T, \ char(*)[1]: E) -#define _RUNE_Q_PTR(T, F, S, ...) \ - _RUNE_STATIC_IF(_RUNE_PTR_IS_CONST((S)), \ +#define __MLIB_Q_PTR(T, F, S, ...) \ + __MLIB_STATIC_IF(__MLIB_PTR_IS_CONST((S)), \ (const T *)(F)(__VA_ARGS__), \ (T *)(F)(__VA_ARGS__)) /* clang-format on */ -- cgit v1.2.3