PSCF v1.1
|
File containing preprocessor macros for error handling. More...
#include <mpi.h>
#include <util/misc/Log.h>
#include "assert.h"
#include "misc/Exception.h"
Go to the source code of this file.
Macros | |
#define | NDEBUG |
Include access to a Log file. More... | |
#define | UTIL_FUNC __PRETTY_FUNCTION__ |
Macro for the name of the current function (compiler dependent). More... | |
#define | UTIL_THROW(msg) |
Macro for throwing an Exception, reporting function, file and line number. More... | |
#define | UTIL_CHECK(condition) if (!(condition)) { UTIL_THROW("Failed assertion: " #condition); } |
Assertion macro suitable for serial or parallel production code. More... | |
#define | UTIL_ASSERT(condition) {} |
Assertion macro suitable for debugging serial or parallel code. More... | |
File containing preprocessor macros for error handling.
Definition in file global.h.
#define NDEBUG |
#define UTIL_FUNC __PRETTY_FUNCTION__ |
#define UTIL_THROW | ( | msg | ) |
Macro for throwing an Exception, reporting function, file and line number.
#define UTIL_CHECK | ( | condition | ) | if (!(condition)) { UTIL_THROW("Failed assertion: " #condition); } |