lua-users home
lua-l archive

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

Ok. I found it in Lua 5.0 as:

<C code>
#define lua_boxpointer(L,u) \
        (*(void **)(lua_newuserdata(L, sizeof(void *))) = (u))

#define lua_unboxpointer(L,i)   (*(void **)(lua_touserdata(L, i)))
</C code>

Is there a reason why these macros are missing in 5.1(work6) ?

> -----Original Message-----
> From: [mailto:lua-
>] On Behalf Of Vijay Aswadhati
> Sent: Tuesday, August 23, 2005 10:04 PM
> To: 'Lua list'
> Subject: What is the replacement code in Lua 5.1 for lua_boxpointer?
> I looked through the archives and there is too much noise.
> --v.a