Is there a verify() function (Such as VERIFY() in msvc) or similar that is in the standard c libraries or do I have to write my own? If so, which header is it under?
Edit: The difference between assert and verify is that verify will still execute the function in a release build, whereas the statement in assert is not compiled in release.
I.e.
assert( printf("assert ") );
verify( printf("verify") );
in debug will print "assert verify" but in release will print "verify".
At runtime, C has the
assertmacro inassert.h.At compile time, C (since C11) has the
static_assertmacro inassert.h.For information, for
static_assertsome C89/C99 compilers also include it as a compiler extension. For example IAR compiler has thestatic_assertfunction inintrinsics.h.