[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: lua_pushtable
- From: Nodir Temirhodzhaev <tnodir@...>
- Date: Mon, 7 Jun 2004 08:59:45 +0400 (MSD)
Mike Pall:
>> LUA_API void lua_pushtable (lua_State *L, const void *t)
{
>> lua_lock(L);
>> sethvalue(L->top, t);
>> api_incr_top(L);
>> lua_unlock(L);
>> }
>
>This doesn't work and will severly screw up the garbage
collection.
This works. I guarantee that when use lua_pushtable then
table is exist.
Of course user may delete table in C-function (from
registry), but then it will get segfault.