Re: Uncertain about luabind
Tomas Cokis <[email protected]>
| Newsgroups | gmane.comp.lang.lua.bind.user |
|---|---|
| Message-ID | <[email protected]> |
Teto-2 wrote: > > > It perfeclty accept pointers for example: global_vars["Level"] = this; > > When I try this: double c_x; object global_vars = globals(m_LuaState); global_vars["c_x"] = &c_x; // It SIGABRT's me here while if I simply try: global_vars["c_x"] = c_x; it runs fine - so if its accepting pointer for you its not for me. I have found a work around globals(m_LuaState)["c_x"] = c_x; // For sending c_x = luabind::object_cast<float>(luabind::globals(m_LuaState)["c_x"]); // For reading If there is a way to do it with pointers though I would really like to know - having to run through a refresh list to sync really sucks. -- View this message in context: http://old.nabble.com/Uncertain-about-luabind-tp27160576p27162485.html Sent from the Lua C++ Bind mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Throughout its 18-year history, RSA Conference consistently attracts the world's best and brightest in the field, creating opportunities for Conference attendees to learn about information security's most important issues through interactions with peers, luminaries and emerging and established companies. http://p.sf.net/sfu/rsaconf-dev2dev