[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Current state of 5.1, and the PS2.
- From: Sam Roberts <sroberts@...>
- Date: Thu, 2 Nov 2006 16:45:38 -0800
On Thu, Nov 02, 2006 at 05:23:51PM -0500, Brian Weed wrote:
> Today I attempted to upgrade to Lua v5.1.1 (from Lua 5.0) on the PS2,
> and I'm getting a crash when opening the base library.
I haven't converted yet, but did you see:
http://www.lua.org/manual/5.1/manual.html#7.3
The luaopen_* functions (to open libraries) cannot be called directly,
like a regular C function. They must be called through Lua, like a Lua
function
> if ((L = lua_newstate(MyRealloc, NULL)) != NULL)
> {
> lua_cpcall(L, lua_openbase, NULL); // Crashes in here
> ...base_open(L) ---> lua_pushvalue(L, LUA_GLOBALSINDEX)
>
> ///...
> }