mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Fix file scope #assert
This commit is contained in:
+7
-4
@@ -2816,10 +2816,13 @@ bool collect_file_decls(CheckerContext *ctx, Array<Ast *> const &decls) {
|
|||||||
}
|
}
|
||||||
case_end;
|
case_end;
|
||||||
|
|
||||||
case_ast_node(ce, CallExpr, decl);
|
case_ast_node(es, ExprStmt, decl);
|
||||||
if (ce->proc->kind == Ast_BasicDirective) {
|
if (es->expr->kind == Ast_CallExpr) {
|
||||||
Operand o = {};
|
ast_node(ce, CallExpr, es->expr);
|
||||||
check_expr(ctx, &o, decl);
|
if (ce->proc->kind == Ast_BasicDirective) {
|
||||||
|
Operand o = {};
|
||||||
|
check_expr(ctx, &o, es->expr);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
case_end;
|
case_end;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user