mirror of
https://github.com/vlang/v.git
synced 2025-09-09 23:39:39 -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
|
module builtin
|
||||||
|
|
||||||
// isnil returns true if an object is nil (only for C objects).
|
// isnil returns true if an object is nil (only for C objects).
|
||||||
@[inline]
|
@[inline; markused]
|
||||||
pub fn isnil(v voidptr) bool {
|
pub fn isnil(v voidptr) bool {
|
||||||
return v == 0
|
return v == 0
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user