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

debugging v -live message.v

This commit is contained in:
Alexander Medvednikov 2019-12-05 12:48:16 +03:00
parent 9d854c5df0
commit 90e3ab8c1e
2 changed files with 3 additions and 2 deletions

View File

@ -17,7 +17,8 @@ fn main() {
vexe := args[1] vexe := args[1]
ret := os.system('$vexe -live examples/hot_reload/message.v') ret := os.system('$vexe -live examples/hot_reload/message.v')
if ret != 0 { if ret != 0 {
println('-live message.v failed') println('v -live message.v failed')
exit(1) exit(1)
} }
println('v -live message.v is ok')
} }

View File

@ -130,7 +130,7 @@ TODO
#endif #endif
*/ */
ptr := C.malloc(n) ptr := C.malloc(n)
if isnil(ptr) { if ptr == 0 {
panic('malloc($n) failed') panic('malloc($n) failed')
} }
return ptr return ptr