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: red floyd
Subject: Re: unique identifiers for guard macros
Date: Wed, 05 Apr 2006 20:50:35 GMT
User-agent: Thunderbird 1.5 (Windows/20051201)

Angel Tsankov wrote:
Can someone recommend a way to create "unique" identifiers for use in guard macros:

#if !defined (UNIQUE_GUARD)
#define UNIQUE_GUARD
...
#endif //!defined UNIQUE_GUARD

In VC6 MS tacked a GUID onto the end of the include guard e.g.

#if !defined(FILE_H_INSERT_128_BIT_GUID_HERE)

but in VC7 and later they came up with #pragma once.

If you do any MS/COM programming, or (I think) CORBA programming, you should have a GUID generator.


reply via email to

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