| author | |
| committer | |
| log | c57fcd1db536591ecdee8c9ec497c8ea667c57f0 |
| tree | 055c758e008dc4c3f212c2a6bf14f5485f120d48 |
| parent | 6997f82e028642a727cc8762a9077c473066e265 |
| signature |
Translating statements is currently not supported; demoting to extern is
better than crashing.1 files changed, 3 insertions(+), 1 deletions(-)
lib/compiler/aro_translate_c.zig+3-1| ... | ... | @@ -971,7 +971,9 @@ fn transFnType( |
| 971 | 971 | } |
| 972 | 972 | |
| 973 | 973 | fn transStmt(c: *Context, node: NodeIndex) TransError!ZigNode { |
| 974 | return transExpr(c, node, .unused); | |
| 974 | _ = c; | |
| 975 | _ = node; | |
| 976 | return error.UnsupportedTranslation; | |
| 975 | 977 | } |
| 976 | 978 | |
| 977 | 979 | fn transCompoundStmtInline(c: *Context, compound: NodeIndex, block: *Scope.Block) TransError!void { |