mirror of
https://github.com/Ed94/gencpp.git
synced 2025-08-16 00:47:41 -07:00
started to work on modularizing parser code paths
This commit is contained in:
@@ -310,7 +310,7 @@
|
||||
# if GEN_COMPILER_CPP
|
||||
# define struct_zero(type) {}
|
||||
# else
|
||||
# define struct_zero(type) (type) {0}
|
||||
# define struct_zero(type) {0}
|
||||
# endif
|
||||
#endif
|
||||
|
||||
|
@@ -320,7 +320,7 @@ inline
|
||||
StrBuilder strbuilder_fmt_buf(AllocatorInfo allocator, char const* fmt, ...)
|
||||
{
|
||||
local_persist thread_local
|
||||
PrintF_Buffer buf = struct_init(PrintF_Buffer, {0});
|
||||
PrintF_Buffer buf = struct_zero(PrintF_Buffer);
|
||||
|
||||
va_list va;
|
||||
va_start(va, fmt);
|
||||
|
Reference in New Issue
Block a user