mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-14 18:02:22 -07:00
Update math and math/linalg; add "pure_none" calling convention
This commit is contained in:
+1
-1
@@ -7655,7 +7655,7 @@ ExprKind check_call_expr(CheckerContext *c, Operand *operand, Ast *call, Ast *pr
|
||||
|
||||
{
|
||||
if (c->curr_proc_calling_convention == ProcCC_Pure) {
|
||||
if (pt->kind == Type_Proc && pt->Proc.calling_convention != ProcCC_Pure) {
|
||||
if (pt->kind == Type_Proc && pt->Proc.calling_convention != ProcCC_Pure && pt->Proc.calling_convention != ProcCC_PureNone) {
|
||||
error(call, "Only \"pure\" procedure calls are allowed within a \"pure\" procedure");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user