🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Using Lua or LuaPlus with C++ Member Functions

Started by
0 comments, last by risnerch 20 years, 4 months ago
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.
Advertisement
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]

This topic is closed to new replies.

Advertisement