[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: [small fix] macro names
- From: Pavel Vozenilek <pavel_vozenilek@...>
- Date: Tue, 1 May 2007 22:53:02 +0100 (BST)
I included all Lua files in single translation unit
together with Zlib. Macros FLAGS and MAXBITS are
defined in both libraries. Perhaps Lua could use some
naming convention that would make macro collision less
probable.
Also one suggestion: someone may like to put all Lua
code into a C++ namespace (e.g. to use two different
Lua versions in a single executable). The sources may
support it by having something like:
------something.c----
#include <stdio.h>
LUA_NAMESPACE_BEGIN
...
... code
....
LUA_NAMESPACE_END
----------------------
with these two macros defined as empty by default.
/Pavel
___________________________________________________________
To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com