]> de.git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - ast.c
parsing of loop labels
[xonotic/gmqcc.git] / ast.c
diff --git a/ast.c b/ast.c
index b6a8a786c7d76b55a1fb7af884e82958848255af..2f78fe52b9774797937cefa30eb3999030a5d701 100644 (file)
--- a/ast.c
+++ b/ast.c
@@ -764,12 +764,13 @@ void ast_loop_delete(ast_loop *self)
     mem_d(self);
 }
 
-ast_breakcont* ast_breakcont_new(lex_ctx ctx, bool iscont)
+ast_breakcont* ast_breakcont_new(lex_ctx ctx, bool iscont, unsigned int levels)
 {
     ast_instantiate(ast_breakcont, ctx, ast_breakcont_delete);
     ast_expression_init((ast_expression*)self, (ast_expression_codegen*)&ast_breakcont_codegen);
 
     self->is_continue = iscont;
+    self->levels      = levels;
 
     return self;
 }