ZeroEQ
0.6.0
ZeroEQ - Zero Event Queue
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
log.h
1
2
/* Copyright (c) 2014-2015, Human Brain Project
3
* Juan Hernando <jhernando@fi.upm.es>
4
*/
5
6
#ifndef ZEROEQ_LOG_H
7
#define ZEROEQ_LOG_H
8
9
#include <iostream>
10
#define ZEROEQERROR std::cerr
11
#define ZEROEQWARN std::cerr
12
#ifdef NDEBUG
13
# define ZEROEQINFO if( false ) std::cout
14
# define ZEROEQLOG if( false ) std::cout
15
#else
16
# define ZEROEQINFO std::cerr
17
# define ZEROEQLOG std::cerr
18
#endif
19
#define ZEROEQDONTCALL \
20
{ ZEROEQERROR << "Code is not supposed to be called in this context" \
21
<< std::endl; }
22
23
#define ZEROEQTHROW(exc) \
24
{ \
25
ZEROEQINFO << exc.what() << std::endl; \
26
throw exc; \
27
}
28
29
#endif
install
include
zeroeq
log.h
Generated on Wed Sep 28 2016 01:34:17 for ZeroEQ by
1.8.9.1