This commit is contained in:
2025-05-30 08:15:29 +01:00
parent 4dc3d8f832
commit 70aa166624
3 changed files with 10 additions and 9 deletions

View File

@@ -27,6 +27,7 @@ typedef struct SV
#define SV(DATA, SIZE) ((const sv_t){.size = (SIZE), .data = (DATA)})
#define SV_FMT(SV) (int)(SV).size, (SV).data
#define PR_SV "%.*s"
#define PR_DEBUG_SV "%d@%p"
sv_t sv_make(arena_t *allocator, const char *data, u64 size);
sv_t sv_copy(arena_t *allocator, sv_t sv);