Testing module

require_not_null

procedure · 1 overloadsince 0.28.0Source

expect_not_null, then returns from the calling procedure on a failure.

require_not_null :: (pointer: *$T, loc := #caller_location)

expect_not_null, then returns from the calling procedure on a failure.

Parameters

pointer: *$T
the pointer that must not be null.
loc := #caller_location
where the check is written, shown when it fails. Leave the default.

See also