Main Page
Modules
Namespaces
Classes
Files
File List
File Members
include
ApproxMVBB
Common
LogDefines.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_LogDefines_hpp
11
#define ApproxMVBB_Common_LogDefines_hpp
12
13
#include <iostream>
14
15
#include "
ApproxMVBB/Config/Config.hpp
"
16
17
#define ApproxMVBB_LOG(message ) { std::cout << message ; }
18
#define ApproxMVBB_LOGLEVEL(level,setlevel,message) { if( level <= setlevel ){ ApproxMVBB_LOG(message); } }
19
#define ApproxMVBB_LOGLEVEL_SCOPE(level) { if( level <= setlevel ) { }
20
#define ApproxMVBB_LOGLEVEL_SCOPE_END { } }
21
22
// Message Log ==================================================================================
23
#if ApproxMVBB_FORCE_MSGLOG_LEVEL > 0
24
#define ApproxMVBB_MSGLOG_LEVEL ApproxMVBB_FORCE_MSGLOG_LEVEL // force the output level if set in the config!
25
#else
26
#ifndef NDEBUG
27
// Debug!
28
#define ApproxMVBB_MSGLOG_LEVEL 2 // 0 = no output
29
#else
30
#define ApproxMVBB_MSGLOG_LEVEL 0 // 0 = no output
31
#endif
32
#endif
33
34
#define ApproxMVBB_MSGLOG_L1(message ) { ApproxMVBB_LOGLEVEL(1, ApproxMVBB_MSGLOG_LEVEL, message) }
35
#define ApproxMVBB_MSGLOG_L2(message ) { ApproxMVBB_LOGLEVEL(2, ApproxMVBB_MSGLOG_LEVEL, message) }
36
#define ApproxMVBB_MSGLOG_L3(message ) { ApproxMVBB_LOGLEVEL(3, ApproxMVBB_MSGLOG_LEVEL, message) }
37
// ==============================================================================================
38
39
#endif
Config.hpp
asr_approx_mvbb
Author(s): Gassner Nikolai
autogenerated on Mon Jun 10 2019 12:38:08