Skip to content
Snippets Groups Projects
Commit 1b933e33 authored by Julien Michel's avatar Julien Michel
Browse files

DEV: Adding a new macro for warnings outside of itk::Object

parent 99bf6ca1
No related branches found
No related tags found
No related merge requests found
......@@ -108,6 +108,16 @@ namespace otb
} \
}
#define otbGenericWarningMacro(x) \
{ \
if (itk::Object::GetGlobalWarningDisplay()) \
{ \
std::ostringstream itkmsg; \
itkmsg << "WARNING: In " __FILE__ ", line " << __LINE__ << ": " x <<"\n";\
itk::OutputWindowDisplayWarningText(itkmsg.str().c_str()); \
} \
}
/** This macro is used to control condition. It use ONLY by the OTB developers
*
*/
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment