aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-03-15 19:24:58 +0100
committerThomas Voss <mail@thomasvoss.com> 2024-03-15 19:24:58 +0100
commitaebabed4d9b16eeac9c307e762767a3fd296003a (patch)
tree1ac65b83cf67c79103f3fc70b76fe5288e6ebde4 /include
parent86ec20382f0a91c603b0380a6ab3796392292daf (diff)
Add U8_ARGSP()
Diffstat (limited to 'include')
-rw-r--r--include/mbstring.h5
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)