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

Macro CHECK_AND_CALL_INTERFACE_IMPLEMENTATION only does checking, if

NDEBUG is not defined. 


[[Imported from SVN: r4757]]
parent 37cfe651
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@
/** The macro CHECK_AND_CALL_INTERFACE_IMPLEMENTATION throws an exception,
if the interface method ist not implemented and just calls the method
otherwise. If NDEBUG is defined and DUNE_DEVEL_MODE is not defined not
otherwise. If NDEBUG is defined no
checking is done and the method is just called.
*/
......@@ -22,13 +22,11 @@
#define CHECK_AND_CALL_INTERFACE_IMPLEMENTATION(__interface_method_to_call__) \
(__interface_method_to_call__)
#ifndef NDEBUG
#ifdef DUNE_DEVEL_MODE
#undef CHECK_AND_CALL_INTERFACE_IMPLEMENTATION
#define CHECK_AND_CALL_INTERFACE_IMPLEMENTATION(__interface_method_to_call__) \
CHECK_INTERFACE_IMPLEMENTATION(__interface_method_to_call__)
#endif
#endif
#endif
#ifndef CHECK_INTERFACE_IMPLEMENTATION
#define CHECK_INTERFACE_IMPLEMENTATION(dummy)
......
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