added debugger mode

This commit is contained in:
cozis
2021-11-02 06:43:24 +00:00
parent a1f2db9aa9
commit 6be81ffa36
6 changed files with 167 additions and 8 deletions
+2 -2
View File
@@ -1070,8 +1070,8 @@ static Node *parse_compound_statement(Context *ctx, TokenKind end)
node->base.kind = NODE_COMP;
node->base.next = NULL;
node->base.offset = head->offset;
node->base.length = end_offset - head->offset;
node->base.offset = head ? head->offset : 0;
node->base.length = head ? end_offset - head->offset : 0;
node->head = head;
}