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

bug fix, CHECK_AND_CALL_INTERFACE_IMPLEMENTATION was disabled

and therefor function calls lost. 


[[Imported from SVN: r4774]]
parent 3d262f6a
No related branches found
No related tags found
No related merge requests found
......@@ -12,25 +12,10 @@
//- Dune includes
#include <dune/common/exceptions.hh>
/** 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 no
checking is done and the method is just called.
*/
#ifndef CHECK_AND_CALL_INTERFACE_IMPLEMENTATION
#define CHECK_AND_CALL_INTERFACE_IMPLEMENTATION(__interface_method_to_call__) \
(__interface_method_to_call__)
#ifndef NDEBUG
#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
#ifndef CHECK_INTERFACE_IMPLEMENTATION
#define CHECK_INTERFACE_IMPLEMENTATION(dummy)
#ifndef NDEBUG
// only do checking if DUNE_DEVEL_MODE is defined aswell
#ifdef DUNE_DEVEL_MODE
#undef CHECK_INTERFACE_IMPLEMENTATION
#define CHECK_INTERFACE_IMPLEMENTATION(__interface_method_to_call__) \
......@@ -45,3 +30,21 @@
#endif
#endif
#endif
/** 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 no
checking is done and the method is just called.
*/
#ifndef CHECK_AND_CALL_INTERFACE_IMPLEMENTATION
#define CHECK_AND_CALL_INTERFACE_IMPLEMENTATION(__interface_method_to_call__) \
(__interface_method_to_call__)
#ifndef NDEBUG
// only do checking if DUNE_DEVEL_MODE is defined aswell
#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
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