Add printer for SV's that provides debug information

This commit is contained in:
2025-08-29 20:04:35 +01:00
parent d62a11bb35
commit a9b08d3a11

View File

@@ -50,6 +50,7 @@ typedef struct
#define SV(DATA, SIZE) ((sv_t){.data = (DATA), .size = (SIZE)})
#define SV_FMT(SV) (int)(SV).size, (SV).data
#define PR_SV "%.*s"
#define PRD_SV "%d@%p"
sv_t sv_copy(sv_t);