[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: tolua++: passing C++ objects to Lua?
- From: Enrico Colombini <erix@...>
- Date: Mon, 12 Mar 2007 16:49:16 +0100
Leigh McRae wrote:
TOLUA_API void tolua_pushusertype (lua_State* L, void* value, const
Foo* pFoo = new Foo();
tolua_pushusertype( L, pFoo, "Foo" );
Off hand I can't remeber how to determine ownership of pFoo.
Thanks. Ownership detection should not be a problem in my case.
(looks like I'll probably have to design a lighter interface for
performance reasons, though).