[Dune] Remark BartonNackman Interface Check.
Robert Kloefkorn
robertk at mathematik.uni-freiburg.de
Wed Oct 25 15:59:31 CEST 2006
Hello Dune,
some remarks to the CHECK_INTERFACE_IMPLEMENTATION.
This macro is only non-empty if NDEBUG is __not__ and DUNE_DEVEL_MODE
__is__ defined. The reason is, that for checking the implementation this
macro at the moment needs to call the desired method twice, which is a
hindrance of this method, but it works.
For methods returning void one can use the macro
CHECK_AND_CALL_INTERFACE_IMPLEMENTATION which does the check and calls
the method. if NDEBUG is defined, this macro just calls the interface
method and the cehck is disabled.
For details see source list (dune-common/common/bartonnackmanifcheck.hh)
Regards
R
--
Robert Klöfkorn <robertk at mathematik.uni-freiburg.de>
Mathematisches Institut Tel: +49 (0) 761 203 5631
Abt. für Angewandte Mathematik Fax: +49 (0) 761 203 5632
Universität Freiburg
Hermann-Herder-Str. 10
79104 Freiburg
http://www.mathematik.uni-freiburg.de/IAM/homepages/robertk
More information about the Dune
mailing list