summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorMitya Selivanov <automainint@guattari.tech>2023-03-28 08:26:06 +0200
committerMitya Selivanov <automainint@guattari.tech>2023-03-28 08:26:06 +0200
commit561523996a48eb016e5e10b62bb0ddfa2bb984c6 (patch)
tree8ebc5a2c1a85627dc6cbaa9d2951ad1e8a5a962e /source
parent2cb2ba5349679437457fe63566fab81fde669d76 (diff)
downloadkit-561523996a48eb016e5e10b62bb0ddfa2bb984c6.zip
Improve BS macro
Diffstat (limited to 'source')
-rw-r--r--source/kit/string_ref.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/kit/string_ref.h b/source/kit/string_ref.h
index 5584880..a5ad5c1 100644
--- a/source/kit/string_ref.h
+++ b/source/kit/string_ref.h
@@ -59,13 +59,14 @@ static char const *kit_make_bs(kit_str_t const s) {
kit_str((string_).size, (string_).values)
#ifndef KIT_DISABLE_SHORT_NAMES
+# define BS(string_) kit_make_bs(KIT_WRAP_STR(string_))
+
# define string_mut_t kit_string_mut_t
# define string_ref_t kit_string_ref_t
# define out_str_t kit_out_str_t
# define str_t kit_str_t
# define SZ KIT_SZ
-# define BS kit_make_bs
# define WRAP_BS KIT_WRAP_BS
# define WRAP_STR KIT_WRAP_STR
#endif