Re: Pass a LuaFunction back to c++ and call it later...
Wolfmanfx <[email protected]>
| Newsgroups | gmane.comp.lang.lua.bind.user |
|---|---|
| Message-ID | <[email protected]> |
luabind::call_function<void>(luaBindObject["FuncName"], boost::ref(luaBindObject), param1, param2...); I just did not passed the self object (boost::ref(luaBindObject)) Now it works Wolfmanfx wrote: > > Hi, > > I have a question: > > I want to register a lua function to c++ so i assume the c++ function must > take a luabind:object* ? > Further how do i call the function (luabind::call<luabind:object>)? > When i register the function in c++ is the ref count incremented from the > table, which the table belongs? > > best regards Murat > -- View this message in context: http://old.nabble.com/Pass-a-LuaFunction-back-to-c%2B%2B-and-call-it-later...-tp29101363p29216325.html Sent from the Lua C++ Bind mailing list archive at Nabble.com. ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first