diff options
author | Thomas Voss <mail@thomasvoss.com> | 2024-03-15 19:24:58 +0100 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2024-03-15 19:24:58 +0100 |
commit | aebabed4d9b16eeac9c307e762767a3fd296003a (patch) | |
tree | 1ac65b83cf67c79103f3fc70b76fe5288e6ebde4 | |
parent | 86ec20382f0a91c603b0380a6ab3796392292daf (diff) |
Add U8_ARGSP()
-rw-r--r-- | include/mbstring.h | 5 |
1 files changed, 3 insertions, 2 deletions
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) |