7 /* Returns true if the given priority is enabled for the default
8 * category. Priority is xbt_log_priority_SUFFIX, where SUFFIX may
9 * be: trace, debug, verbose, info, warning, error, critical.
11 #define LOG_ISENABLED(priority) \
12 (_XBT_LOG_ISENABLEDV((*_XBT_LOGV(default)), (priority)))
14 /* Defines XCLOGn(...) which behave like CLOGn(...), except that the
15 * given category is not passed through _XBT_LOGV before use.
18 # define XBT_XCLOG(c, p, ...) XBT_CLOG_((*(c)), p, __VA_ARGS__)
19 # define XCLOG0(...) XBT_XCLOG(__VA_ARGS__)
20 # define XCLOG1(...) XBT_XCLOG(__VA_ARGS__)
21 # define XCLOG2(...) XBT_XCLOG(__VA_ARGS__)
22 # define XCLOG3(...) XBT_XCLOG(__VA_ARGS__)
23 # define XCLOG4(...) XBT_XCLOG(__VA_ARGS__)
24 # define XCLOG5(...) XBT_XCLOG(__VA_ARGS__)
25 # define XCLOG6(...) XBT_XCLOG(__VA_ARGS__)
27 # define XCLOG0(c, p, f) _XBT_LOG_PRE((*(c)),p) ,f _XBT_LOG_POST
28 # define XCLOG1(c, p, f,a1) _XBT_LOG_PRE((*(c)),p) ,f,a1 _XBT_LOG_POST
29 # define XCLOG2(c, p, f,a1,a2) _XBT_LOG_PRE((*(c)),p) ,f,a1,a2 _XBT_LOG_POST
30 # define XCLOG3(c, p, f,a1,a2,a3) _XBT_LOG_PRE((*(c)),p) ,f,a1,a2,a3 _XBT_LOG_POST
31 # define XCLOG4(c, p, f,a1,a2,a3,a4) _XBT_LOG_PRE((*(c)),p) ,f,a1,a2,a3,a4 _XBT_LOG_POST
32 # define XCLOG5(c, p, f,a1,a2,a3,a4,a5) _XBT_LOG_PRE((*(c)),p) ,f,a1,a2,a3,a4,a5 _XBT_LOG_POST
33 # define XCLOG6(c, p, f,a1,a2,a3,a4,a5,a6) _XBT_LOG_PRE((*(c)),p) ,f,a1,a2,a3,a4,a5,a6 _XBT_LOG_POST
36 /* Returns c-string "s" if n > 1, empty string "" otherwise. */
37 #define ESSE(n) ((n) > 1 ? misc::str_esse : misc::str_nil)
40 extern const char str_esse[];
41 extern const char str_nil[];