mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-10-14 04:49:41 -07:00
use compound initializers to define and drive obj generation
This commit is contained in:
1 parent
ccb1cd8f4d
commit
1f4c4af598
6 files changed
+3309
-3112
No files matched your search
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in new issue
Block a user