lua-users home
lua-l archive

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


> How do you pass your userdata object into Lua calls?  That is, say I 
> have C++ code that wants to call a function like:
> 
> int doSomething(MyObject* obj);

Yep, in my case the number of calls like this is relatively minimal.  I
do indeed just push a newuserdatabox() every time.

I haven't found this to be a problem for what I'm doing, but I can see
that it could become prohibitive in other applications.

Love, Light and Peace,
- Peter Loveday
eyeon Software