diff options
author | lloyd <[email protected]> | 2013-03-13 14:33:04 +0000 |
---|---|---|
committer | lloyd <[email protected]> | 2013-03-13 14:33:04 +0000 |
commit | 35c5cbed2ebe0eb72e2ff665b78a9027d17c19ec (patch) | |
tree | 46b89bdc0bb85231b0dd465e5a208615d1503ce7 /src/utils/assert.h | |
parent | 33c0c05989f9c024ab46d176c2cc1177c3c9d6ec (diff) |
Move assert.h from internal to very public (included in types.h)
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.
Diffstat (limited to 'src/utils/assert.h')
-rw-r--r-- | src/utils/assert.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/utils/assert.h b/src/utils/assert.h index 04b8ce4ed..9265be450 100644 --- a/src/utils/assert.h +++ b/src/utils/assert.h @@ -8,16 +8,18 @@ #ifndef BOTAN_ASSERTION_CHECKING_H__ #define BOTAN_ASSERTION_CHECKING_H__ +#include <botan/build.h> + namespace Botan { /** * Called when an assertion fails */ -void assertion_failure(const char* expr_str, - const char* assertion_made, - const char* func, - const char* file, - int line); +void BOTAN_DLL assertion_failure(const char* expr_str, + const char* assertion_made, + const char* func, + const char* file, + int line); /** * Make an assertion |