[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Disabling initialization env-vars lookup
- From: Lorenzo Donati <lorenzodonatibz@...>
- Date: Wed, 27 Jul 2011 18:37:52 +0200
Hi all!
A hopefully simple question for people knowledgeable of Lua source code:
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?
For example, if I wanted to avoid Lua from running the initialization
code specified by LUA_INIT, would it be enough to modify luaconf.h so
that the line:
#define LUA_INIT "LUA_INIT"
is removed? Or should I define that macro as an empty string:
#define LUA_INIT ""
or neither will do and I should mess more deeply with the source code to
achieve what I want.
TIA
Cheers,
-- Lorenzo