debugging v -live message.v
parent
9d854c5df0
commit
90e3ab8c1e
|
@ -17,7 +17,8 @@ fn main() {
|
|||
vexe := args[1]
|
||||
ret := os.system('$vexe -live examples/hot_reload/message.v')
|
||||
if ret != 0 {
|
||||
println('-live message.v failed')
|
||||
println('v -live message.v failed')
|
||||
exit(1)
|
||||
}
|
||||
println('v -live message.v is ok')
|
||||
}
|
||||
|
|
|
@ -130,7 +130,7 @@ TODO
|
|||
#endif
|
||||
*/
|
||||
ptr := C.malloc(n)
|
||||
if isnil(ptr) {
|
||||
if ptr == 0 {
|
||||
panic('malloc($n) failed')
|
||||
}
|
||||
return ptr
|
||||
|
|
Loading…
Reference in New Issue