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

View File

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