lua-users home
lua-l archive

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


Take a look at the code generated by tolua, you can use
'tolua_pushusertype', or 'tolua_pushusertype_and_takeownership' for values
owned by the luastate.. You can use those to push values for functions, or
use with setglobal or something.

Hope that helps..

Ariel Manzur.

On Fri, Sep 17, 2004 at 12:47:54PM -0400, Bounty Hunter wrote:
> How can I pass v to lua scripts, so I can do the following:
> print(v_in_lua.a)
> v_in_lua.b=2