Checks that pointer is null.
p: *int;
expect_null(p);- pointer: the pointer that must be null.
- loc: where the check is written, shown when it fails. Leave the default.
expect_null :: (pointer: *$T, loc := #caller_location) -> bool
Checks that pointer is null.
Parameters
- pointer: *$T
- the pointer that must be null.
- loc := #caller_location
- where the check is written, shown when it fails. Leave the default.
Returns
- bool
p: *int;
expect_null(p);