mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
android: fix os.create and builtin
This commit is contained in:
committed by
Alexander Medvednikov
parent
c24a1b3786
commit
8053175ead
@@ -21,16 +21,15 @@ const (
|
||||
fn C.puts(charptr)
|
||||
*/
|
||||
|
||||
pub fn println(s string) {
|
||||
/*
|
||||
pub fn println(s string) {
|
||||
$if linux {
|
||||
snl := s + '\n'
|
||||
C.syscall(sys_write, stdout_value, snl.str, s.len+1)
|
||||
$if !android {
|
||||
snl := s + '\n'
|
||||
C.syscall(/* sys_write */ 1, /* stdout_value */ 1, snl.str, s.len+1)
|
||||
return
|
||||
}
|
||||
}
|
||||
$else {
|
||||
*/
|
||||
C.printf('%.*s\n', s.len, s.str)
|
||||
//}
|
||||
C.printf('%.*s\n', s.len, s.str)
|
||||
}
|
||||
|
||||
fn print_backtrace_skipping_top_frames_msvc(skipframes int) bool {
|
||||
|
||||
Reference in New Issue
Block a user