Reformatting
This commit is contained in:
12
macro.hh
12
macro.hh
@@ -7,8 +7,8 @@
|
||||
/* Fatal error */
|
||||
#define FERROR(s) \
|
||||
{ \
|
||||
std::cerr << "EE: " << __FILE__ << " (function " << __func__ << "), line " << __LINE__ << ": " << s << std::endl; \
|
||||
exit(1); \
|
||||
std::cerr << "EE: " << __FILE__ << " (function " << __func__ << "), line " << __LINE__ << ": " << s << std::endl; \
|
||||
exit(1); \
|
||||
}
|
||||
#define WARNING(s) \
|
||||
{ \
|
||||
@@ -18,25 +18,25 @@
|
||||
#define VERB(s) \
|
||||
assert(opts != nullptr); \
|
||||
if (opts->verbose > 0) { \
|
||||
std::cerr << "ii VERBOSE(1): " << __FILE__ << " (" << __func__ << ":" << __LINE__ << "): " << s << std::endl; \
|
||||
std::cerr << "ii VERBOSE(1): " << __FILE__ << " (" << __func__ << ":" << __LINE__ << "): " << s << std::endl; \
|
||||
}
|
||||
|
||||
#define VERB_L2(s) \
|
||||
assert(opts != nullptr); \
|
||||
if (opts->verbose > 1) { \
|
||||
std::cerr << "ii VERBOSE(2): " << __FILE__ << " (" << __func__ << ":" << __LINE__ << "): " << s << std::endl; \
|
||||
std::cerr << "ii VERBOSE(2): " << __FILE__ << " (" << __func__ << ":" << __LINE__ << "): " << s << std::endl; \
|
||||
}
|
||||
|
||||
#define VERB_L3(s) \
|
||||
assert(opts != nullptr); \
|
||||
if (opts->verbose > 2) { \
|
||||
std::cerr << "ii VERBOSE(3): " << __FILE__ << " (" << __func__ << ":" << __LINE__ << "): " << s << std::endl; \
|
||||
std::cerr << "ii VERBOSE(3): " << __FILE__ << " (" << __func__ << ":" << __LINE__ << "): " << s << std::endl; \
|
||||
}
|
||||
|
||||
#define VERB_LN(n,s) \
|
||||
assert(opts != nullptr); \
|
||||
if (opts->verbose >= (n)) { \
|
||||
std::cerr << "ii VERBOSE(" << (n) << "): " << __FILE__ << " (" << __func__ << ":" << __LINE__ << "): " << s << std::endl; \
|
||||
std::cerr << "ii VERBOSE(" << (n) << "): " << __FILE__ << " (" << __func__ << ":" << __LINE__ << "): " << s << std::endl; \
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user