Abort.h File Reference

Detailed Description

#include "core/singleton/Singleton.h"
#include <functional>
#include <cstdlib>
#include <sstream>
#include <stdexcept>
#include <string>

Classes

class  walberla::Abort
 

Namespaces

 walberla
 Storage for detected contacts which can be used to perform actions for all contacts, e.g.
 

Macros

#define WALBERLA_ABORT(msg)
 
#define WALBERLA_ABORT_NO_DEBUG_INFO(msg)
 

Macro Definition Documentation

#define WALBERLA_ABORT (   msg)
Value:
{\
std::ostringstream WALBERLA__ABORT__OSS;\
WALBERLA__ABORT__OSS << msg;\
walberla::Abort::instance()->abort( WALBERLA__ABORT__OSS.str(), __FILE__, __LINE__ ); /* aborts execution, will never return */ \
std::exit( EXIT_FAILURE ); /* must not be deleted, prevents "not all paths return a value" warnings! */ \
}
#define WALBERLA_ABORT_NO_DEBUG_INFO (   msg)
Value:
{\
std::ostringstream WALBERLA__ABORT__OSS;\
WALBERLA__ABORT__OSS << msg;\
walberla::Abort::instance()->abortNoDebugInfo( WALBERLA__ABORT__OSS.str(), __FILE__, __LINE__ ); /* aborts execution, will never return */ \
std::exit( EXIT_FAILURE ); /* must not be deleted, prevents "not all paths return a value" warnings! */ \
}