Go to the documentation of this file.
25 #define NMDebug(arg) \
27 std::ostringstream str; \
29 std::cout << str.str(); \
32 #define NMDebugAI(arg) \
34 std::ostringstream str; \
35 for (int q=1; q <= nmlog::nmindent+1; q++) \
40 std::cout << str.str(); \
43 #define NMDebugInd(level, arg) \
45 std::ostringstream str; \
46 for (int q=1; q <= level; q++) \
51 std::cout << str.str(); \
54 #define NMDebugTimeInd(level, arg) \
56 std::ostringstream str; \
57 for (int q=1; q <= level; q++) \
61 str << __TIME__ << " - " arg; \
62 std::cout << str.str(); \
65 #define NMDebugTime(arg) \
67 std::ostringstream str; \
68 str << __TIME__ << " - " arg; \
69 std::cout << str.str(); \
72 #define NMDebugCtx(context, arg) \
75 std::ostringstream str; \
81 for (int q=1; q <= nmlog::nmindent; q++) \
85 str << context << "::" << \
86 __FUNCTION__ << ": " arg; \
87 std::cout << str.str() << std::endl; \
92 #define NMDebugTimeCtx(context, arg) \
94 std::ostringstream str; \
95 str << __TIME__ << ": " << context << "::" << \
96 __FUNCTION__ << ": " arg; \
97 std::cout << str.str() << std::endl; \
101 #define NMDebugAI(arg)
102 #define NMDebugInd(level, arg)
103 #define NMDebugTime(arg)
104 #define NMDebugTimeInd(level, arg)
105 #define NMDebugCtx(ctx, arg)
106 #define NMDebugTimeCtx(ctx, arg)
110 #define NMErr(context, arg) \
112 std::ostringstream str; \
113 str << "ERROR - " << context << "::" << \
114 __FUNCTION__ << ", l. " << \
115 __LINE__ << ": " arg; \
116 std::cerr << str.str() << std::endl; \
122 std::ostringstream str; \
124 std::cout << str.str() << std::endl; \