[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: How should I set up C + Lua modules
- From: "Henderson, Michael D" <michael.d.henderson@...>
- Date: Thu, 17 Feb 2011 15:17:21 -0700
On Thursday, February 17, 2011 2:48 PM Henderson, Michael D wrote:
> I have a C driver that sets up my environment, calls luaL_newstate(),
> luaL_openlibs(), then calls lua_pushstring a couple of times to set
> up a environment table. Then it calls luaL_loadbuffer() and lua_pcall()
> to run the scripts.
I tried it by setting the LUA_PATH and LUA_CPATH variables and running with the lua executable. Works perfectly. So, I've narrowed it down to programmer error. I'll go through the source code for lua 5.1.4 and see if I can find what I'm missing.
Mike