mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 04:24:33 +01:00
aro_translate_c: demote functions with bodies to extern
Translating statements is currently not supported; demoting to extern is better than crashing.
This commit is contained in:
parent
6997f82e02
commit
c57fcd1db5
1 changed files with 3 additions and 1 deletions
|
|
@ -971,7 +971,9 @@ fn transFnType(
|
|||
}
|
||||
|
||||
fn transStmt(c: *Context, node: NodeIndex) TransError!ZigNode {
|
||||
return transExpr(c, node, .unused);
|
||||
_ = c;
|
||||
_ = node;
|
||||
return error.UnsupportedTranslation;
|
||||
}
|
||||
|
||||
fn transCompoundStmtInline(c: *Context, compound: NodeIndex, block: *Scope.Block) TransError!void {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue