Skip to content
Snippets Groups Projects
Commit 4060c500 authored by Robert Klöfkorn's avatar Robert Klöfkorn
Browse files

CHECK_INTERFACE_IMPLEMENTATION only done when NDEBUG not defined and

DUNE_DEVEL_MODE defined, because using this macro leads to an extra method
call. 



[[Imported from SVN: r4755]]
parent 67a2e4be
Branches
Tags
No related merge requests found
......@@ -16,7 +16,10 @@
#include <dune/common/exceptions.hh>
namespace Dune {
#define CHECK_INTERFACE_IMPLEMENTATION(dummy)
#ifndef NDEBUG
#ifdef DUNE_DEVEL_MODE
#undef CHECK_INTERFACE_IMPLEMENTATION
#define CHECK_INTERFACE_IMPLEMENTATION(__interface_method_to_call__) \
{\
static bool call = false; \
......@@ -26,8 +29,7 @@ namespace Dune {
(__interface_method_to_call__); \
call = false; \
}
#else
#define CHECK_INTERFACE_IMPLEMENTATION(dummy)
#endif
#endif
} // end namespace Dune
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment