lua-users home
lua-l archive

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


Hmmmm.

Maybe this is silly but ...

I want to store a pointer to a table in a c++ class, then push the table onto the lua stack, and call a lua method that accepts the table as the first param.

I don't seem to be able to store a table as a void* and then push it as a table via the lua c api ...

This is to link a class and a lua table together so lua can add any variables it wants to the table, and get access to these via the lua function callback that the c++ object calls and passes the table to.

If this makes sense :)

Incoherent as ever,


Rob