Skip to content

Commit

Permalink
fix uxn backend
Browse files Browse the repository at this point in the history
  • Loading branch information
MESYETI committed Dec 8, 2024
1 parent fd8559d commit 1e7f27b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/backends/uxn.d
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ class BackendUXN : CompilerBackend {

override string DefaultHeader() => "
|00 @System &vector $2 &expansion $2 &wst $1 &rst $1 &metadata $2 &r $2 &g $2 &b $2 &debug $1 &state $1
|10 @Console &vector $2 &read $1 &pad $5 &write $1 &error $1
|10 @Console &vector $2 &read $5 &type $1 &write $1 &error $1
";

override bool HandleOption(string opt, ref string[] versions) => false;
Expand Down
5 changes: 4 additions & 1 deletion source/compiler.d
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,10 @@ class Compiler {
case NodeType.TryCatch: backend.CompileTryCatch(cast(TryCatchNode) inode); break;
case NodeType.Unsafe: {
auto node = cast(UnsafeNode) inode;
Compile(node.nodes);

foreach (ref inode2 ; node.nodes) {
CompileNode(inode2);
}
break;
}
default: {
Expand Down

0 comments on commit 1e7f27b

Please sign in to comment.