19 Sep
2008
19 Sep
'08
7:59 p.m.
On Fri, 19 Sep 2008 14:47:29 -0500, "Peng Yu"
Hi,
In most of the C++ header files I've seem, a macro like the following is used to guard repetitive inclusion of the file. I'm wondering why it is always in upper case. Why not make it the same case as the file name?
What if there are two header files on is in lower case, the other is in upper case?
Thanks, Peng
#ifndef BOOST_MPI_HPP
Because normal convention is that macro names are placed in upper case, and other names are not to avoid collisions with names, and to make visual identification of them clearer. Richard