1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

builtin: replace isnil calls for perfomance

This commit is contained in:
Alexander Medvednikov
2020-04-27 07:13:36 +02:00
parent e523540f3a
commit ef26f27753
3 changed files with 5 additions and 5 deletions

View File

@@ -50,7 +50,7 @@ pub fn panic(s string) {
}
pub fn eprintln(s string) {
if isnil(s.str) {
if s.str == 0 {
panic('eprintln(NIL)')
}
$if !windows {
@@ -65,7 +65,7 @@ pub fn eprintln(s string) {
}
pub fn eprint(s string) {
if isnil(s.str) {
if s.str == 0 {
panic('eprint(NIL)')
}
$if !windows {