[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lua 5.3.0 Compile-time Customization Suggestions
- From: Roberto Ierusalimschy <roberto@...>
- Date: Wed, 10 Jul 2013 10:12:04 -0300
> 1. In 'luaconf.h': At the end of the file instead of / as well as the 'Local
> configuration' comment, add:
> #if defined(LUA_USERCONFIG_H)
> #include LUA_USERCONFIG_H
> This will allow customisations to be made here without editing the
> distribution file, making maintenance easier. This is the same technique
> already used in 'lua.h'.
One of the main motivations for the existence of luaconf.h is to avoid
that kind of customisation. More often than not, you want all external
libraries to be compiled with the same options of the kernel (e.g.,
you want all them to use the same numeric types), and that is hard to
ensure using external defines.
For other changes, you are wellcome to use LUA_USER_H.