|
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