aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)