This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH][libcpp] Macros for unique named functions / identifiers


On 04/14/2010 11:38 AM, Dave Edwards wrote:
This wouldn't work - CANON_BASE_FILE is*different*  for each included
file. With this approach we'd get the same string for each invokation of
the compiler, and thus we'd not get unique names.

But you would join that with __COUNTER__, not __LINE__.


Paolo


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]