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

builtin: fix termux println (#9829)

This commit is contained in:
Thomas Treffner 2021-04-28 08:11:50 +02:00 committed by GitHub
parent f4e92997f2
commit 1fbf75f2e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -206,7 +206,8 @@ pub fn println(s string) {
}
$if android {
C.fprintf(C.stdout, c'%.*s\n', s.len, s.str)
} $else $if ios {
}
$if ios {
C.WrappedNSLog(s.str)
} $else $if freestanding {
bare_print(s.str, u64(s.len))