[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Disabling initialization env-vars lookup
- From: Lorenzo Donati <lorenzodonatibz@...>
- Date: Wed, 27 Jul 2011 18:48:06 +0200
On 27/07/2011 18.44, Luiz Henrique de Figueiredo wrote:
if I wanted to avoid Lua to check for initialization env vars such as
LUA_INIT, LUA_PATH and LUA_CPATH, would it be enough to undefine the
respective macros in luaconf.h?
No. Lua still calls getenv on the macros and you'll get a compilation error.
#define LUA_INIT ""
This look safer.
Thanks for the prompt reply!