Commit e459cb31 authored by Stéphane Albert's avatar Stéphane Albert
Browse files

ENH: Moved mvdUseInDebug() and mvdUseInRelease() macros into otbConfigure.h.in...

ENH: Moved mvdUseInDebug() and mvdUseInRelease() macros into otbConfigure.h.in as otbUseInDebug() and otbUseInRelease().
parent 295518ab
......@@ -18,3 +18,12 @@
#cmakedefine OTB_SHOW_ALL_MSG_DEBUG
#cmakedefine OTB_USE_GDAL_20
// see http://stackoverflow.com/questions/2290509/debug-vs-ndebug#2290616
#ifdef NDEBUG
# define otbUseInDebug( name )
# define otbUseInRelease( name ) name
#else // NDEBUG
# define otbUseInDebug( name ) name
# define otbUseInRelease( name )
#endif // NDEBUG
......@@ -152,13 +152,4 @@
//
// Macros
// see http://stackoverflow.com/questions/2290509/debug-vs-ndebug#2290616
#ifdef NDEBUG
# define mvdUseInDebug( name )
# define mvdUseInRelease( name ) name
#else // NDEBUG
# define mvdUseInDebug( name ) name
# define mvdUseInRelease( name )
#endif // NDEBUG
#endif // __ConfigureMonteverdi_h
......@@ -314,7 +314,7 @@ StackedLayerModel
/*******************************************************************************/
std::string
StackedLayerModel
::GenerateKey( AbstractLayerModel * mvdUseInDebug( layerModel ) )
::GenerateKey( AbstractLayerModel * otbUseInDebug( layerModel ) )
{
std::ostringstream oss;
......
......@@ -497,7 +497,7 @@ InputProcessXMLInitializer
inline
ToolTipInitializer::result_type
ToolTipInitializer
::operator () ( argument_type mvdUseInDebug( widget ) ) const
::operator () ( argument_type otbUseInDebug( widget ) ) const
{
assert( widget!=NULL );
......
......@@ -530,7 +530,7 @@ ImageViewManipulator
/******************************************************************************/
void
ImageViewManipulator
::ResizeEvent( QResizeEvent * mvdUseInDebug( e ) )
::ResizeEvent( QResizeEvent * otbUseInDebug( e ) )
{
assert( e!=NULL );
......
......@@ -220,7 +220,7 @@ QuicklookViewManipulator
/******************************************************************************/
void
QuicklookViewManipulator
::WheelEvent( QWheelEvent * mvdUseInDebug( e ) )
::WheelEvent( QWheelEvent * otbUseInDebug( e ) )
{
assert( e!=NULL );
}
......@@ -228,7 +228,7 @@ QuicklookViewManipulator
/******************************************************************************/
void
QuicklookViewManipulator
::KeyPressEvent( QKeyEvent * mvdUseInDebug( e ) )
::KeyPressEvent( QKeyEvent * otbUseInDebug( e ) )
{
assert( e!=NULL );
......@@ -238,7 +238,7 @@ QuicklookViewManipulator
/******************************************************************************/
void
QuicklookViewManipulator
::KeyReleaseEvent( QKeyEvent * mvdUseInDebug( e ) )
::KeyReleaseEvent( QKeyEvent * otbUseInDebug( e ) )
{
assert( e!=NULL );
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment