TOLUA_API void tolua_pushusertype (lua_State* L, void* value, const char* type) Class Foo; Foo* pFoo = new Foo(); tolua_pushusertype( L, pFoo, "Foo" ); Off hand I can't remeber how to determine ownership of pFoo.
Class Foo;
Foo* pFoo = new Foo();
tolua_pushusertype( L, pFoo, "Foo" );
Enrico