aboutsummaryrefslogtreecommitdiffstats
path: root/src/utils/assert.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Shuffle things around. Add NIST X.509 test to build.lloyd2014-01-011-36/+0
|
* Assertion failure is not always an internal errorlloyd2013-09-051-1/+1
|
* Move assert.h from internal to very public (included in types.h)lloyd2013-03-131-1/+0
| | | | | | This reduces friction to writing an assert, so hopefully there will be more of them as a result. And we can use asserts in public headers now, very useful for templates.
* The messages for assertion checks were done both ways, both "assertionlloyd2012-07-091-3/+5
| | | | | | X is true" and "assertion X is false". Convert all of them to the form "assertion X is true" thus making it clear what it is that we are attempting to assert by testing the expression provided.
* Remove BOTAN_ASSERT_FUNCTION, use __func__ which is now standard in C++11lloyd2012-07-091-3/+3
|
* Add non-null assertion, don't print msg if empty stringlloyd2011-12-281-1/+1
|
* There is a pretty common pattern in the code for testing for internallloyd2010-09-261-0/+35
errors of the form if(some_expr_indicating_failure) throw Internal_Error("Some mildly informative message"); Make this simpiler with the addition of a BOTAN_ASSERT macro which will throw an exception upon failure.