[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: error when loading strict.lua
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Thu, 13 Sep 2007 09:43:58 -0300
> lua_State* L = luaL_newstate();
> if (luaL_dofile(L, "strict.lua")) {
> printf("failed to load strict.lua: %s\n", lua_tostring(L, -1));
> }
>
> However, this fails and the error is "C stack overflow"
You need luaL_openlibs(L) before luaL_dofile here. But the error message
should have been "attempt to call global 'getmetatable' (a nil value)".