From aebabed4d9b16eeac9c307e762767a3fd296003a Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Fri, 15 Mar 2024 19:24:58 +0100 Subject: Add U8_ARGSP() --- include/mbstring.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/mbstring.h b/include/mbstring.h index 74a3767..2b5ec01 100644 --- a/include/mbstring.h +++ b/include/mbstring.h @@ -8,8 +8,9 @@ #include "__rune.h" #include "__u8view.h" -#define U8V(s) ((struct u8view){.p = (s), .len = sizeof(s) - 1}) -#define U8_ARGS(s) ((s).p), ((s).len) +#define U8V(s) ((struct u8view){.p = (s), .len = sizeof(s) - 1}) +#define U8_ARGS(s) ((s).p), ((s).len) +#define U8_ARGSP(s) (&(s).p), (&(s).len) /* clang-format off */ #define U8_BYTE_1(x) (((x) & 0x80) == 0x00) -- cgit v1.2.3