Skip to content

Commit

Permalink
Fix closing brackets not being generated
Browse files Browse the repository at this point in the history
Happens when a function has local variables but no references to
static/global variables
  • Loading branch information
RA-Kooi committed Jan 28, 2022
1 parent f90ea94 commit b6317e9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions DwarfOne2C/CWriter/Function.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,10 @@ private static List<string> GenerateFunction(
line += ';';
code.Add(line);
}
else
{
code.Add("}");
}

code.Add("");

Expand Down

0 comments on commit b6317e9

Please sign in to comment.