Commit 9a4aa2aa authored by Mark Andrews's avatar Mark Andrews
Browse files

model _assert_true

parent 380ab3b3
Pipeline #6981 passed with stages
in 8 minutes and 29 seconds
......@@ -94,3 +94,16 @@ void isc__mempool_put(void *mem, void *ptr FLARG) {
if (!mem) __coverity_panic__();
__coverity_free__(ptr);
}
/*
* Cmocka models.
*/
#define LargestIntegralType unsigned long int
void _assert_true(const LargestIntegralType result,
const char * const expression,
const char * const file, const int line)
{
if (!result) __coverity_panic__();
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment