comptime: fix tcc check

pull/2340/head
Alexander Medvednikov 2019-10-14 08:52:54 +03:00
parent 60e7c12e92
commit a68222b55b
1 changed files with 3 additions and 1 deletions

View File

@ -69,8 +69,10 @@ fn (p mut Parser) comp_time() {
p.genln('#ifdef __TINYC__') p.genln('#ifdef __TINYC__')
p.check(.lcbr) p.check(.lcbr)
p.statements_no_rcbr() p.statements_no_rcbr()
if ! (p.tok == .dollar && p.peek() == .key_else) {
p.genln('#endif') p.genln('#endif')
} }
}
else { else {
println('Supported platforms:') println('Supported platforms:')
println(supported_platforms) println(supported_platforms)