Re: Pushing C++ objects onto stack
"Josh Klint" <[email protected]>
| Newsgroups | gmane.comp.lang.lua.bind.user |
|---|---|
| Message-ID | <000001cc1511$5b35c6a0$11a153e0$@com> |
Thank you, it werks!:
void Interpreter::PushObject(const Object* object)
{
luabind::object o = luabind::object(L,object);
o.push(L);
}
Best Regards,
Josh Klint
CEO
Leadwerks Software
www.leadwerks.com
From: Iliya Trendafilov [mailto:[email protected]]
Sent: Tuesday, May 17, 2011 7:46 PM
To: [email protected]
Subject: Re: [luabind] Pushing C++ objects onto stack
http://www.rasterbar.com/products/luabind/docs.html#object
Construct a luabind::object with the `template<class T> object(lua_State*, T const& value)` constructor, then call the object's push() method.
On Wed, May 18, 2011 at 4:14 AM, Josh Klint <[email protected]> wrote:
I need to push a C++ object into the Lua stack and have it recognized the same as other objects in LuaBind, and I don't think lightuserdata is the same. I can't seem to find search results for this. Any answers on this? It should be a simple thing.
Best Regards,
Josh Klint
CEO
Leadwerks Software
www.leadwerks.com
------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its
next-generation tools to help Windows* and Linux* C/C++ and Fortran
developers boost performance applications - including clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
luabind-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/luabind-user
------------------------------------------------------------------------------
What Every C/C++ and Fortran developer Should Know!
Read this article and learn how Intel has extended the reach of its
next-generation tools to help Windows* and Linux* C/C++ and Fortran
developers boost performance applications - including clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
luabind-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/luabind-user