diff options
Diffstat (limited to 'src/utils/assert.cpp')
-rw-r--r-- | src/utils/assert.cpp | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/src/utils/assert.cpp b/src/utils/assert.cpp deleted file mode 100644 index b6d4f4240..000000000 --- a/src/utils/assert.cpp +++ /dev/null @@ -1,36 +0,0 @@ -/* -* Runtime assertion checking -* (C) 2010,2012 Jack Lloyd -* -* Distributed under the terms of the Botan license -*/ - -#include <botan/exceptn.h> -#include <sstream> - -namespace Botan { - -void assertion_failure(const char* expr_str, - const char* assertion_made, - const char* func, - const char* file, - int line) - { - std::ostringstream format; - - format << "False assertion "; - - if(assertion_made && assertion_made[0] != 0) - format << "'" << assertion_made << "' (expression " << expr_str << ") "; - else - format << expr_str << " "; - - if(func) - format << "in " << func << " "; - - format << "@" << file << ":" << line; - - throw std::runtime_error(format.str()); - } - -} |