Using Lua or LuaPlus with C++ Member Functions
I''ve been trying to get Lua and LuaPlus to work with member functions for the past week or so and have continually run into trouble. I''ve tried using Luna with Lua 5.0 as well as the LuaState/LuaObject from LuaPlus but still haven''t gotten it to work. Essentially I''m trying to abstract all of the scripting stuff into a seperate class. I want the state/object to be private members of the class as well as the funcitons that I want to register but errors consistently pop up no matter what I try. Does anyone have an example of what it should look like to make this work? Thanks.
No, but maybe if you post the errors someone might be able to lend a hand..?
[ MSVC Fixes | STL Docs | SDL | Game AI | Sockets | C++ Faq Lite | Boost
Asking Questions | Organising code files | My stuff | Tiny XML | STLPort]
[ MSVC Fixes | STL Docs | SDL | Game AI | Sockets | C++ Faq Lite | Boost
Asking Questions | Organising code files | My stuff | Tiny XML | STLPort]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement