diff options
Diffstat (limited to 'src/manager/dpl/core/src/assert.cpp')
-rw-r--r-- | src/manager/dpl/core/src/assert.cpp | 39 |
1 files changed, 21 insertions, 18 deletions
diff --git a/src/manager/dpl/core/src/assert.cpp b/src/manager/dpl/core/src/assert.cpp index 96591783..9fb4fa67 100644 --- a/src/manager/dpl/core/src/assert.cpp +++ b/src/manager/dpl/core/src/assert.cpp @@ -27,25 +27,28 @@ namespace CKM { void AssertProc(const char *condition, - const char *file, - int line, - const char *function) + const char *file, + int line, + const char *function) { - try { - LogError( - "################################################################################" << std::endl << - "### CKM assertion failed! ###" << std::endl << - "################################################################################" << std::endl << - "### Condition: " << condition << std::endl << - "### File: " << file << std::endl << - "### Line: " << line << std::endl << - "### Function: " << function << - "################################################################################"); - } catch (...) { - // Just ignore possible double errors - } + try { + LogError( + "################################################################################" + << std::endl << + "### CKM assertion failed! ###" + << std::endl << + "################################################################################" + << std::endl << + "### Condition: " << condition << std::endl << + "### File: " << file << std::endl << + "### Line: " << line << std::endl << + "### Function: " << function << + "################################################################################"); + } catch (...) { + // Just ignore possible double errors + } - // Fail with c-library abort - abort(); + // Fail with c-library abort + abort(); } } // namespace CKM |