Fix branching and branch state
This commit is contained in:
parent
0c87c61e01
commit
ce49e40d26
@ -81,8 +81,9 @@ fn br_target(level: usize, in_loop: bool, w: &mut dyn Write) -> Result<()> {
|
|||||||
write!(w, "continue ")?;
|
write!(w, "continue ")?;
|
||||||
}
|
}
|
||||||
|
|
||||||
write!(w, "end ")?;
|
write!(w, "else ")?;
|
||||||
write!(w, "break ")?;
|
write!(w, "break ")?;
|
||||||
|
write!(w, "end ")?;
|
||||||
write!(w, "end ")
|
write!(w, "end ")
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -288,6 +289,7 @@ impl Driver for FuncData {
|
|||||||
fn write(&self, mng: &mut Manager, w: &mut dyn Write) -> Result<()> {
|
fn write(&self, mng: &mut Manager, w: &mut dyn Write) -> Result<()> {
|
||||||
write_parameter_list(self, w)?;
|
write_parameter_list(self, w)?;
|
||||||
write_variable_list(self, w)?;
|
write_variable_list(self, w)?;
|
||||||
|
write!(w, "local desired, temp ")?;
|
||||||
|
|
||||||
mng.num_param = self.num_param;
|
mng.num_param = self.num_param;
|
||||||
self.code.write(mng, w)?;
|
self.code.write(mng, w)?;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user