mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
@ -37,11 +37,7 @@ pub fn println(s string) {
|
||||
if isnil(s.str) {
|
||||
panic('println(NIL)')
|
||||
}
|
||||
$if windows {
|
||||
C._putws(s.to_wide())
|
||||
} $else {
|
||||
C.printf('%.*s\n', s.len, s.str)
|
||||
}
|
||||
C.printf('%.*s\n', s.len, s.str)
|
||||
}
|
||||
|
||||
pub fn eprintln(s string) {
|
||||
@ -58,11 +54,7 @@ pub fn eprintln(s string) {
|
||||
}
|
||||
|
||||
pub fn print(s string) {
|
||||
$if windows {
|
||||
C.wprintf(s.to_wide())
|
||||
} $else {
|
||||
C.printf('%.*s', s.len, s.str)
|
||||
}
|
||||
C.printf('%.*s', s.len, s.str)
|
||||
}
|
||||
|
||||
__global total_m i64 = 0
|
||||
|
Reference in New Issue
Block a user