summaryrefslogtreecommitdiff
path: root/str.h
diff options
context:
space:
mode:
Diffstat (limited to 'str.h')
-rw-r--r--str.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/str.h b/str.h
index b10bc64..83f0cb4 100644
--- a/str.h
+++ b/str.h
@@ -15,7 +15,8 @@ typedef struct {
Str head, tail;
} Cut;
-#define S(s) (Str){s,sizeof(s)-1}
+#define Ss(s) {s,sizeof(s)-1}
+#define S(s) (Str)Ss(s)
char *str_to_cstr(Str s, Arena *a);
Str str_from_cstr(const char *s);