sv: SV_AUTO macro (for literal strings/literal byte arrays really).

This commit is contained in:
2026-02-10 16:33:11 +00:00
committed by oreodave
parent daa1d3d565
commit 818d4da850
3 changed files with 9 additions and 8 deletions

View File

@@ -64,8 +64,8 @@ void stream_test_string(void)
{
TEST_START();
sv_t test_strings[] = {
SV("hello, world!", 13),
SV("another string", 14),
SV_AUTO("hello, world!"),
SV_AUTO("another string"),
SV((char *)text, ARRSIZE(text) / 2),
};