[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Disabling initialization env-vars lookup
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Wed, 27 Jul 2011 13:44:29 -0300
> 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.