mirror of
https://github.com/vlang/v.git
synced 2025-09-08 14:51:53 -04:00
builtin: add a @[markused]
tag to isnil()
, because cgen generates calls to it in some cases (#23462)
This commit is contained in:
parent
6f7cbd1aef
commit
ae8109545e
@ -5,7 +5,7 @@
|
||||
module builtin
|
||||
|
||||
// isnil returns true if an object is nil (only for C objects).
|
||||
@[inline]
|
||||
@[inline; markused]
|
||||
pub fn isnil(v voidptr) bool {
|
||||
return v == 0
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user