Skip to content

Commit

Permalink
repro and explanation for #232
Browse files Browse the repository at this point in the history
  • Loading branch information
sylefeb committed Aug 5, 2022
1 parent 020bb6f commit 466b4f8
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions tests/issues/232_pre.si
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@

// This type of preprocessor construction no longer works

$$if ICESTICK then
// algorithm main(output uint5 leds, inout uint8 pmod)
$$else
// algorithm main(output uint5 leds)
$$end
//{
// while (1) {
// }
//}

// Instead use:

algorithm main(
$$if ICESTICK then
output uint5 leds, inout uint8 pmod
$$else
output uint5 leds
$$end
) {
while (1) {
}
}

0 comments on commit 466b4f8

Please sign in to comment.