Ensure, $eval and $evaltype, @unreachable() replaces $unreachable. <Type>.sizeof

This commit is contained in:
Christoffer Lerno
2022-03-02 23:01:43 +01:00
committed by Christoffer Lerno
parent 4f4bc80953
commit 2802b2b96d
51 changed files with 1146 additions and 1163 deletions

View File

@@ -43,7 +43,7 @@ private fn void LinkedList.linkFirst(LinkedList *list, Type value)
private fn void LinkedList.linkLast(LinkedList *list, Type value)
{
Node *last = list.last;
Node *new_node = mem::alloc($sizeof(Node));
Node *new_node = mem::alloc(Node.sizeof);
*new_node = { .prev = last, .value = value };
list.last = new_node;
if (!last)