The Lua C API is verbose and it can sometimes be a bit complicated to navigate. Furthermore, if you are programming in C++, the API doesn't really fit into the OOP idiom. There are a few binding libraries that try to bridge this gap. One of the most intuitive and easy-to-use libraries out there is Lua Bridge. You can get Lua Bridge from GitHub at https://github.com/vinniefalco/LuaBridge.
Lua Bridge focuses on letting the user create object-oriented Lua bindings in an intuitive and easy manner. In fact, using Lua Bridge, you can create a fairly complex Lua class with far less code than if you were writing it using the Lua C API alone. One of the nice features of Lua Bridge is the concept of a namespace. A namespace is just a container table that all variables are registered in, like...