Gromacs
5.1.3
|
#include "gmxpre.h"
#include "errorcodes.h"
#include <cstdlib>
#include "thread_mpi/mutex.h"
#include "errorformat.h"
Implements functions in errorcodes.h.
Functions | |
void | gmx::anonymous_namespace{errorcodes.cpp}::standardErrorHandler (int retcode, const char *msg, const char *file, int line) |
The default error handler if setFatalErrorHandler() is not called. | |
const char * | gmx::getErrorCodeString (int errorcode) |
Returns a short string description of an error code. More... | |
ErrorHandlerFunc | gmx::setFatalErrorHandler (ErrorHandlerFunc handler) |
Sets callback function for handling errors. More... | |
void | gmx::internal::fatalError (int retcode, const char *msg, const char *file, int line) |
Raises a fatal error. More... | |
Variables | |
const char *const | gmx::anonymous_namespace{errorcodes.cpp}::error_names [] |
Strings corresponding to gmx::ErrorCode values. More... | |
ErrorHandlerFunc | gmx::anonymous_namespace{errorcodes.cpp}::g_errorHandler = standardErrorHandler |
Global error handler set with setFatalErrorHandler(). | |
tMPI::mutex | gmx::anonymous_namespace{errorcodes.cpp}::handler_mutex |
Mutex for protecting access to g_errorHandler. | |