[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Recursive closures using upvalues in C
- From: Roberto Ierusalimschy <roberto@...>
- Date: Mon, 11 Mar 2013 10:14:35 -0300
> However if I replace the lua_call second parameter with 0, I get
> another API check failure, but in that case during the interpreter
> teardown (ie. after the Lua script finished):
>
> Lua API check failed: (p) != luaO_nilobject, file lua-5.1.4\src\lapi.c, line 184
Line 184 is this:
api_checkvalidindex(L, p);
It means that lua_remove is being called with an invalid index (that is,
an index out of bounds for the current stack).
-- Roberto