mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
minor V.js fixes
This commit is contained in:
@ -19,7 +19,7 @@ pub fn panic(s string) {
|
||||
}
|
||||
|
||||
pub fn println(s string) {
|
||||
#console.log(s)
|
||||
#console.log(s.str)
|
||||
}
|
||||
|
||||
pub fn eprintln(s string) {
|
||||
|
@ -17,6 +17,15 @@ fn C.strlen(s byteptr) int
|
||||
|
||||
fn todo() { }
|
||||
|
||||
pub fn tos(s byteptr) string {
|
||||
len := 0
|
||||
#len = s.length;
|
||||
return string{
|
||||
str: s
|
||||
len: len
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
pub fn (a string) clone() string {
|
||||
return a
|
||||
|
Reference in New Issue
Block a user