lua-users home
lua-l archive

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


>>> with a suitable definition of LUA_USERSTATE
>
>like this:
>
>typedef struct
>{
> mydata...
>} LUA_USERSTATE;
>
>And you can also define lua_userstateopen(lua_State *L) that Lua will call
>just after allocating the space.

But then I'd have a different version of Lua for one project (I use Lua in
some other projects).

Andre de Leiradella
http://www.geocities.com/andre_leiradella/