lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> 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
> #endif
> 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.

-- Roberto