mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-11-25 07:12:20 -08: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
@@ -247,6 +247,15 @@ s64_list_concat_in_place(S64List *list, S64List *to_concat)
|
||||
SLLConcatInPlace(list, to_concat);
|
||||
}
|
||||
|
||||
internal U64Array
|
||||
u64_array_from_list(Arena *arena, U64List *list)
|
||||
{
|
||||
U64Array result = {0};
|
||||
result.v = push_array(arena, U64, list->count);
|
||||
for EachNode(n, U64Node, list->first) { result.v[result.count++] = n->data; }
|
||||
return result;
|
||||
}
|
||||
|
||||
internal S64Array
|
||||
s64_array_from_list(Arena *arena, S64List *list)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user