1
0
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:
Alexander Medvednikov
2019-06-23 10:12:09 +02:00
parent 0d1d5612ae
commit 06a4dfa290
6 changed files with 26 additions and 108 deletions

11
os/os.v
View File

@ -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.