use compound initializers to define and drive obj generation

This commit is contained in:
Nikita Smith committed 2026-04-24 13:11:34 -07:00
1 parent ccb1cd8f4d
commit 1f4c4af598
6 files changed
+3309 -3112

No files matched your search

+1 -1
View File
@@ -2811,7 +2811,7 @@ str8_serial_push_size(Arena *arena, String8List *srl, U64 size)
void *result = 0;
if(size != 0)
{
U8 *buf = push_array_no_zero(arena, U8, size);
U8 *buf = push_array(arena, U8, size);
String8 *str = &srl->last->string;
if(str->str + str->size == buf)
{
+1
View File
@@ -162,6 +162,7 @@ internal U64 cstring32_length(U32 *c);
#define str8_lit(S) str8((U8*)(S), sizeof(S) - 1)
#define str8_lit_comp(S) {(U8*)(S), sizeof(S) - 1,}
#define str8_lit_cstr(S) str8((U8*)(S), sizeof(S))
#define str8_varg(S) (int)((S).size), ((S).str)
#define str8_array(S,C) str8((U8*)(S), sizeof(*(S))*(C))