mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-09-24 02:00:05 +00:00
use compound initializers to define and drive obj generation
This commit is contained in:
@@ -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