1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

i8 print test + $if mac => $if macos

This commit is contained in:
Alexander Medvednikov
2019-12-03 16:09:37 +03:00
parent b907cf2179
commit ff80e3a5fa
4 changed files with 17 additions and 2 deletions

View File

@ -23,6 +23,9 @@ fn (p mut Parser) comp_time() {
p.fspace()
if name in supported_platforms {
ifdef_name := os_name_to_ifdef(name)
if name == 'mac' {
p.warn('use `macos` instead of `mac`')
}
if not {
p.genln('#ifndef $ifdef_name')
}