Macros | Functions
errormacro.hh File Reference
#include <iostream>
#include <sstream>
#include <cassert>
#include <stdexcept>
#include <mia/core/defines.hh>

Go to the source code of this file.

Macros

#define DEBUG_ASSERT_RELEASE_THROW(cond, msg...)
 

Functions

template<typename V >
void __append_message (std::ostream &os, const V &v)
 
void __append_message (std::ostream &os)
 
template<typename V , typename... T>
void __append_message (std::ostream &os, const V &v, T...t)
 
template<typename... T>
const std::string __create_message (T...t)
 
template<typename E , typename... T>
create_exception (T...t)
 helper template to create exceptions with complex messages More...
 

Macro Definition Documentation

#define DEBUG_ASSERT_RELEASE_THROW (   cond,
  msg... 
)
Value:
if (!(cond)) { \
std::cerr << "Assertion failed: \'" #cond << "\' " << \
__FILE__ << ":" << __LINE__ << " " \
<< ::mia::__create_message(msg) << "\n"; \
abort(); \
}

Definition at line 92 of file errormacro.hh.

Referenced by Vector< T >::begin(), Vector< T >::end(), Vector< T >::operator[](), and T2DVector< T2DVector< T > >::operator[]().

Function Documentation

template<typename V >
void __append_message ( std::ostream &  os,
const V &  v 
)

Definition at line 35 of file errormacro.hh.

Referenced by __append_message(), and __create_message().

void __append_message ( std::ostream &  os)
inline

Definition at line 40 of file errormacro.hh.

template<typename V , typename... T>
void __append_message ( std::ostream &  os,
const V &  v,
T...  t 
)

Definition at line 45 of file errormacro.hh.

References __append_message().

template<typename... T>
const std::string __create_message ( T...  t)

Definition at line 52 of file errormacro.hh.

References __append_message().

Referenced by create_exception().