Go to the documentation of this file.
84#define _mlDebugConst(ENV_VAR, COUTS) \
87 if ((ML_NAMESPACE::MLErrorOutput.getMessageFilter() & ML_DEBUG) || \
88 (ML_NAMESPACE::MLErrorOutput.isFullDebuggingOn())){ \
91 std::stringstream __ML_local_TMp_streamBuFfer; \
92 __ML_local_TMp_streamBuFfer << COUTS << '\0'; \
93 ML_NAMESPACE::MLErrorOutput.handleDebugPrint(ENV_VAR, \
95 __ML_local_TMp_streamBuFfer, \
102#define _mlDebugConst(ENV_VAR, COUTS)
110#define mlDebugConst(ENV_VAR, COUTS) _mlDebugConst(ENV_VAR, COUTS)
123#define mlDebug(COUTS) { const RuntimeType *rt = getClassTypeId(); \
124 ML_CHECK_RUNTIME_TYPE(rt); \
125 _mlDebugConst(std::string{ML_CONSTANT_PREFIX}+ \
130#define mlDebug(COUTS)
162#define mlDebugConditional(COND_SYM, COUTS) \
164 const RuntimeType *rt = getClassTypeId(); \
165 ML_CHECK_RUNTIME_TYPE(rt); \
166 _mlDebugConst(std::string{ML_CONSTANT_PREFIX} + \
167 rt->getName() +"-" + (COND_SYM), \
172#define mlDebugConditional(COND_SYM, COUTS)
184#define mlDebugPrint(COUTS) _mlDebugConst(ML_DEBUG_ENV_NAME, COUTS)
197#define mlDebugClass(CLASS_NAME, COUTS) { const RuntimeType *rt = CLASS_NAME::getClassTypeId(); \
198 ML_CHECK_RUNTIME_TYPE(rt); \
199 _mlDebugConst(std::string{ML_CONSTANT_PREFIX} + \
204#define mlDebugClass(CLASS_NAME, COUTS)