mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-18 03:42:23 -07:00
@(default_calling_convention = ...) for foreign blocks
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user