str_expand fix

This commit is contained in:
Timerix 2025-11-27 01:44:49 +05:00
parent 77e4f38416
commit ea6c20f430

View File

@ -19,7 +19,7 @@ str s = STR("something");
printf(FMT_str"\n", str_expand(s));
*/
#define FMT_str "%.*s"
#define str_expand(s) s.len, s.data
#define str_expand(S) (S).len, (S).data
/// creates str from a string literal
#define STR(LITERAL) str_construct(LITERAL, ARRAY_LEN(LITERAL) - 1, true)