summaryrefslogtreecommitdiff
path: root/source/kit/string_ref.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/kit/string_ref.h')
-rw-r--r--source/kit/string_ref.h26
1 files changed, 12 insertions, 14 deletions
diff --git a/source/kit/string_ref.h b/source/kit/string_ref.h
index 8e76d06..e7ea809 100644
--- a/source/kit/string_ref.h
+++ b/source/kit/string_ref.h
@@ -118,22 +118,20 @@ static char *kit_make_bs(kit_str_t s) {
#define KIT_WRAP_STR(...) \
kit_str((__VA_ARGS__).size, (__VA_ARGS__).values)
-#ifndef KIT_DISABLE_SHORT_NAMES
-# define BS(...) kit_make_bs(KIT_WRAP_STR(__VA_ARGS__))
-# define str_t kit_str_t
-# define str kit_str
-# define str_find kit_str_find
-# define str_find_back kit_str_find_back
-# define str_find_n kit_str_find_n
-# define str_find_back_n kit_str_find_back_n
-# define STR_NOT_FOUND KIT_STR_NOT_FOUND
-# define SZ KIT_SZ
-# define WRAP_BS KIT_WRAP_BS
-# define WRAP_STR KIT_WRAP_STR
-#endif
-
#ifdef __cplusplus
}
#endif
+#define BS(...) kit_make_bs(KIT_WRAP_STR(__VA_ARGS__))
+#define str_t kit_str_t
+#define str kit_str
+#define str_find kit_str_find
+#define str_find_back kit_str_find_back
+#define str_find_n kit_str_find_n
+#define str_find_back_n kit_str_find_back_n
+#define STR_NOT_FOUND KIT_STR_NOT_FOUND
+#define SZ KIT_SZ
+#define WRAP_BS KIT_WRAP_BS
+#define WRAP_STR KIT_WRAP_STR
+
#endif