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

coroutines: $if is_coroutine? {

This commit is contained in:
Alexander Medvednikov
2023-06-03 19:05:50 +02:00
parent 4e21b2ab4e
commit 6fe6fe887d
2 changed files with 17 additions and 0 deletions

View File

@@ -813,6 +813,8 @@ pub fn parse_args_and_show_errors(known_external_commands []string, args []strin
os.system('wget -O "${so_path}" "${so_url}"')
println('done!')
}
res.compile_defines << 'is_coroutine'
res.compile_defines_all << 'is_coroutine'
} $else {
println('coroutines only work on arm64 macos for now')
}