lua-users home
lua-l archive

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


On Sat, 26 Jan 2002 jim@mathies.com wrote:

> My proposal is a simple user definable void* pointer in the Lua state, with 
> set and get API calls:

Have you tried using the LUA_USERSTATE macro? I believe it was put there
to allow  for exactly  this kind  of need.  I use  it for  the per-state
synchonization object used in LuaThreads.

Regards,
Diego.