Nektar++
Classes | Namespaces | Macros
ErrorUtil.hpp File Reference
#include <iostream>
#include <stdexcept>
#include <string>
#include <LibUtilities/LibUtilitiesDeclspec.h>
#include <execinfo.h>

Go to the source code of this file.

Classes

class  Nektar::ErrorUtil
 
class  Nektar::ErrorUtil::NekError
 

Namespaces

namespace  Nektar
 

Macros

#define NEKERROR(type, msg)    Nektar::ErrorUtil::Error(type, __FILE__, __LINE__, msg, 0);
 Assert Level 0 – Fundamental assert which is used whether in FULLDEBUG, DEBUG or OPT compilation mode. This level assert is considered code critical, even under optimized compilation. More...
 
#define ROOTONLY_NEKERROR(type, msg)    Nektar::ErrorUtil::Error(type, __FILE__, __LINE__, msg, 0, true);
 
#define ASSERTL0(condition, msg)
 
#define WARNINGL0(condition, msg)
 
#define ASSERTL1(condition, msg)
 Assert Level 1 – Debugging which is used whether in FULLDEBUG or DEBUG compilation mode. This level assert is designed for aiding in standard debug (-g) mode. More...
 
#define WARNINGL1(condition, msg)
 
#define ASSERTL2(condition, msg)
 Assert Level 2 – Debugging which is used FULLDEBUG compilation mode. This level assert is designed to provide addition safety checks within the code (such as bounds checking, etc.). More...
 
#define WARNINGL2(condition, msg)
 

Macro Definition Documentation

◆ ASSERTL0

#define ASSERTL0 (   condition,
  msg 
)
Value:
if (!(condition)) \
{ \
__LINE__, msg, 0); \
}
static void Error(ErrType type, const char *routine, int lineNumber, const char *msg, unsigned int level, bool DoComm=false)
Definition: ErrorUtil.hpp:86

Definition at line 208 of file ErrorUtil.hpp.

◆ ASSERTL1

#define ASSERTL1 (   condition,
  msg 
)

Assert Level 1 – Debugging which is used whether in FULLDEBUG or DEBUG compilation mode. This level assert is designed for aiding in standard debug (-g) mode.

Definition at line 242 of file ErrorUtil.hpp.

◆ ASSERTL2

#define ASSERTL2 (   condition,
  msg 
)

Assert Level 2 – Debugging which is used FULLDEBUG compilation mode. This level assert is designed to provide addition safety checks within the code (such as bounds checking, etc.).

Definition at line 265 of file ErrorUtil.hpp.

◆ NEKERROR

#define NEKERROR (   type,
  msg 
)     Nektar::ErrorUtil::Error(type, __FILE__, __LINE__, msg, 0);

Assert Level 0 – Fundamental assert which is used whether in FULLDEBUG, DEBUG or OPT compilation mode. This level assert is considered code critical, even under optimized compilation.

Definition at line 202 of file ErrorUtil.hpp.

◆ ROOTONLY_NEKERROR

#define ROOTONLY_NEKERROR (   type,
  msg 
)     Nektar::ErrorUtil::Error(type, __FILE__, __LINE__, msg, 0, true);

Definition at line 205 of file ErrorUtil.hpp.

◆ WARNINGL0

#define WARNINGL0 (   condition,
  msg 
)
Value:
if (!(condition)) \
{ \
__LINE__, msg, 0); \
}

Definition at line 215 of file ErrorUtil.hpp.

◆ WARNINGL1

#define WARNINGL1 (   condition,
  msg 
)

Definition at line 243 of file ErrorUtil.hpp.

◆ WARNINGL2

#define WARNINGL2 (   condition,
  msg 
)

Definition at line 266 of file ErrorUtil.hpp.