[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Namespace pollution in lua.h
- From: David Jones <djones@...>
- Date: Mon, 14 May 2001 09:14:48 +0000
In message <3AFC22C4.6406FD80@gmx.de>, Edgar Toernig writes:
> David Jones wrote:
> >
> > #define index 9
> > #include "lua.h"
> > /* ... */
>
> I would say that if you do this kind of mess it's your turn to
> clean up afterwards ;-)
Yes, well, _obviously_ index is a silly thing to #define. Especially
before including Somebody Else's Header File. But what am I allowed to
defined before including somebody else's header file? stacksize, L, n,
s, len, u, tag, fn, str, filename, name?
Thank goodness for POSIX and ISO C both of which make guarantees about
what you can #define before #including one of their headers.
djones