str_expand fix
This commit is contained in:
parent
77e4f38416
commit
ea6c20f430
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user