aboutsummaryrefslogtreecommitdiff
path: root/src/strview.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/strview.h')
-rw-r--r--src/strview.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/strview.h b/src/strview.h
index d6629ee..7eafdcc 100644
--- a/src/strview.h
+++ b/src/strview.h
@@ -17,7 +17,8 @@ typedef struct {
#define SV_PRI_ARGS(sv) ((int)(sv).len), ((sv).p)
/* Convert the string-literal S into a string-view */
-#define SV(s) ((strview_t){s, sizeof(s) - 1})
+#define SV(s) ((strview_t){s, sizeof(s) - 1})
+#define SVC(s) {s, sizeof(s) - 1}
/* Return the hash of SV */
uint64_t strview_hash(strview_t sv);