mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-23 06:05:00 -07:00
Add or_break and or_continue constructs
This commit is contained in:
@@ -102,8 +102,13 @@ gb_internal void check_stmt_list(CheckerContext *ctx, Slice<Ast *> const &stmts,
|
||||
new_flags |= Stmt_FallthroughAllowed;
|
||||
}
|
||||
|
||||
u32 prev_stmt_flags = ctx->stmt_flags;
|
||||
ctx->stmt_flags = new_flags;
|
||||
|
||||
check_stmt(ctx, n, new_flags);
|
||||
|
||||
ctx->stmt_flags = prev_stmt_flags;
|
||||
|
||||
if (i+1 < max_non_constant_declaration) {
|
||||
switch (n->kind) {
|
||||
case Ast_ReturnStmt:
|
||||
|
||||
Reference in New Issue
Block a user