|
kaycxx-assert
C++ assertion library
|
Asserts that a raw pointer value is not null.
This assertion is intentionally limited to raw pointers and std::nullptr_t. It does not treat smart pointers or arbitrary nullable-looking classes as null values.
Use this instead of assert_true(pointer != nullptr) so failures report the pointer value as a nullness assertion.