lua-users home
lua-l archive

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


On 5/16/05, Ben Sunshine-Hill <sneftel@gmail.com> wrote:
> #include <lobject.h>
> void pushexistinguserdata(lua_State *L, void *ud)
> {
>  lua_lock(L);
>  u = luaS_newudata(L, size);
>  setuvalue(L->top, ((Udata*)ud)-1);
>  api_incr_top(L);
>  lua_unlock(L);
> }

Er, oops. Remove that luaS_newudata line.

Ben