assertNotNull

throws AssertError if a is null

void
assertNotNull
(
A
)
(
A a
,
lazy string fmt = "assertNotNull fails: value is null"
,
string file = __FILE__
,
size_t line = __LINE__
)

Parameters

a
Type: A

value

fmt
Type: string

error message (without format chars)

Meta