mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
replace silly exit(reason string)
with exit(code int)
This commit is contained in:
@ -4,12 +4,8 @@
|
||||
|
||||
module builtin
|
||||
|
||||
pub fn exit(reason string) {
|
||||
if reason == '' {
|
||||
panic('exit empty reason')
|
||||
}
|
||||
println('exit(): $reason')
|
||||
C.exit(0)
|
||||
pub fn exit(code int) {
|
||||
C.exit(1)
|
||||
}
|
||||
|
||||
// isnil returns true if an object is nil (only for C objects).
|
||||
|
Reference in New Issue
Block a user