Few years ago I used luabind for binding C++ objects to Lua and vice versa. There was a way to bind existing (allocated through new operator in C++ code) object to Lua and using it in a script like:
binded_object.property = new_value
Now I am working on a new project where I would like to add some scripting. For the sake of simplicity no boost or any heavy templates are desired. So my question is how to do it using only Lua C Api?
Unfortunately, all examples I encountered show how to bind custom C++ type to Lua and then create a new object of that type in the script and finally return the object to C++.
vector,setetc.) too, because they use templates? I could probably answer your question, but requirements are unclear.