At 06:13 PM 10/11/2001 -0700, Wizard wrote:
>I noticed that many of header files use the following format:
>#if !defined(H_GUARD)
>Is this preferable to "#ifndef"?
I find it clearer to read.
> I always thought that the defined()
>function was only for more complex tests.
Doesn't really matter-
I noticed that many of header files use the following format:
#if !defined(H_GUARD)
#define H_GUARD
Is this preferable to "#ifndef"? I always thought that the defined()
function was only for more complex tests. Additionally, the defined()
function may not be entirely portable (it might be missing