[Dune-devel] Naming of single-inclusion macros
Christian Engwer
christian.engwer at uni-muenster.de
Tue Oct 1 11:25:18 CEST 2013
+1
On Tue, Oct 01, 2013 at 10:30:06AM +0200, Oliver Sander wrote:
> Dear Dune,
> I would like to propose yet another change to our naming rules. Don't be scared,
> this one is simple.
> On our rules page it states that the single-inclusion macro for a header file foo.hh
> should be DUNE_FOO_HH. However, I have already experienced name clashes here, because
> some header names like solver.hh or grid.hh are likely to exist more than once.
> I therefore propose to encode the entire path of each header in the macro.
> For example, a file foo.hh in the the 'common' directory of dune-grid would have the macro
> DUNE_GRID_COMMON_FOO_HH. This would ensure unique macro names. Any objections
> to adding this to our list of rules?
>
> *Note*: this is *not* a call to change all those macro names right now. It should just
> establish an ideal that is used when these macro names are touched anyway, or when new
> headers are introduced.
>
> Cheers,
> Oliver
>
> _______________________________________________
> Dune-devel mailing list
> Dune-devel at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune-devel
--
Prof. Dr. Christian Engwer
Institut für Numerische und Angewandte Mathematik
Fachbereich Mathematik und Informatik der Universität Münster
Einsteinstrasse 62
48149 Münster
E-Mail christian.engwer at uni-muenster.de
Telefon +49 251 83-35067
FAX +49 251 83-32729
More information about the Dune-devel
mailing list