diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-03-07 14:05:35 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-03-07 14:05:35 +0100 |
commit | 5c5629ebb387242e99e90ccbd0bb0344c4a393fa (patch) | |
tree | de680a82b8f6bedc1ca8efd0bdee24bfd61853db /include/__qmacros.h | |
parent | 36ffb88a365ecf9943e5739acb923a36f77d0c21 (diff) |
Use the __MLIB prefix
Diffstat (limited to 'include/__qmacros.h')
-rw-r--r-- | include/__qmacros.h | 8 |
1 files changed, 4 insertions, 4 deletions
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 */ |