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
 \file TimestepTracker.h \ingroup lbm \author Frederik Hennig frede.nosp@m.rik..nosp@m.henni.nosp@m.g@fa.nosp@m.u.de
 

Macros

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

Macro Definition Documentation

◆ WALBERLA_ABORT

#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! */ \
}

◆ WALBERLA_ABORT_NO_DEBUG_INFO

#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! */ \
}