Main Page
Modules
Namespaces
Classes
Files
File List
File Members
include
ApproxMVBB
Common
AssertionDebug.hpp
Go to the documentation of this file.
1
// ========================================================================================
2
// ApproxMVBB
3
// Copyright (C) 2014 by Gabriel Nützi <nuetzig (at) imes (d0t) mavt (d0t) ethz (døt) ch>
4
//
5
// This Source Code Form is subject to the terms of the Mozilla Public
6
// License, v. 2.0. If a copy of the MPL was not distributed with this
7
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
8
// ========================================================================================
9
10
#ifndef ApproxMVBB_Common_AssertionDebug_hpp
11
#define ApproxMVBB_Common_AssertionDebug_hpp
12
13
#include <stdlib.h>
14
#include <iostream>
15
#include <typeinfo>
16
17
#include "
ApproxMVBB/Config/Config.hpp
"
18
#include ApproxMVBB_Exception_INCLUDE_FILE
19
20
#ifndef NDEBUG
21
// Debug!
26
#define ApproxMVBB_ASSERTMSG(condition , message) { if(!(condition)){ ApproxMVBB_ERRORMSG(message) } }
27
#else
28
#define ApproxMVBB_ASSERTMSG(condition , message) { if(!(condition)){ ApproxMVBB_ERRORMSG(message) } }
29
#endif
30
31
#define ApproxMVBB_WARNINGMSG(condition , message) { if(!(condition)){ std::cerr << "WARNING: " << #condition << " : " <<std::endl<< message << std::endl << " @ " << __FILE__ << " (" << __LINE__ << ")" << std::endl;} }
32
#define ApproxMVBB_ERRORMSG( message ) ApproxMVBB_THROWEXCEPTION( message )
33
34
#endif
Config.hpp
asr_approx_mvbb
Author(s): Gassner Nikolai
autogenerated on Mon Jun 10 2019 12:38:08