lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

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 

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.