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:
11
os/os.v
11
os/os.v
@ -315,15 +315,8 @@ pub fn getenv(key string) string {
|
||||
return tos2(s)
|
||||
}
|
||||
|
||||
fn exit(reason string) {
|
||||
println('exit(): $reason')
|
||||
log(reason)
|
||||
C.exit(0)
|
||||
}
|
||||
|
||||
fn exit1(reason string) {
|
||||
println('exit(): $reason')
|
||||
C.exit(1)
|
||||
fn exit(code int) {
|
||||
C.exit(code)
|
||||
}
|
||||
|
||||
// `file_exists` returns true if `path` exists.
|
||||
|
Reference in New Issue
Block a user