help-gplusplus
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: unique identifiers for guard macros


From: address@hidden
Subject: Re: unique identifiers for guard macros
Date: 5 Apr 2006 04:21:31 -0700
User-agent: G2/0.2

Why do you need unique guards? The reason why header guards are used is
to prevent multiple inclusion of a file so the macros are based on the
file name.

For example, foo.h would have:

#ifndef FOO_H
#define FOO_H

#endif

Sorry if this isn't very helpful, but I don't see why you would need
unique guards.

Regards,

Ryan Mansfield



reply via email to

[Prev in Thread] Current Thread [Next in Thread]