From 3e05be8eb8b14729b63ee541d11b3deb19b38710 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Sun, 29 Oct 2017 18:09:05 +0000 Subject: `@(default_calling_convention = ...)` for `foreign` blocks --- src/check_stmt.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/check_stmt.cpp') diff --git a/src/check_stmt.cpp b/src/check_stmt.cpp index 7cbf479e4..3add868ec 100644 --- a/src/check_stmt.cpp +++ b/src/check_stmt.cpp @@ -1670,8 +1670,11 @@ void check_stmt_internal(Checker *c, AstNode *node, u32 flags) { CheckerContext prev_context = c->context; if (ok) { c->context.curr_foreign_library = foreign_library; + c->context.default_foreign_cc = ProcCC_C; } + check_foreign_block_decl_attributes(c, fb); + for_array(i, fb->decls) { AstNode *decl = fb->decls[i]; if (decl->kind == AstNode_ValueDecl && decl->ValueDecl.is_mutable) { -- cgit v1.2.3