To And From C++
Phil Cooper-King <[email protected]> Wed, 2 Nov 2011 16:37:23 +0000
| Newsgroups | gmane.comp.lang.lua.bind.user |
|---|---|
| Message-ID | <CAPrH6UMD6KbaVZ-YMsxyfBqac590uhU06wPFAf0dbHFQGZpZxw@mail.gmail.com> |
Hey Guys,
I'm finding it quite easy to go from C++ to Lua in terms exposing
functionality, but the other way around I'm not really understanding
how to do it.
I have C++ function
void addObject(luabind::object)
{
// Get Base ptr
// Call lua objects method.
}
How do I get the base pointer of this object (amusing its both wrapped
and inherited), and also how do I call its lua methods.
I thought the classes would be just tables, but they dont seem to
return LUA_TTABLE.
Thanks
Phil.
------------------------------------------------------------------------------
RSA® Conference 2012
Save $700 by Nov 18
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev1