07-11-2015, 05:58 AM
@NiLSPACE tolua is a very different job from cLuaState. It is just a preprocessor that reads declarations and produces bindings, cLuaState is just a helper module for interacting with LuaState objects. As for you're program, it sounds like its doing the same thing as tolua, so if you're code is better it might be worth replacing. The only real complications are the complexity of parsing c++, where we are reaching the limits of what tolua can understand, and the mapping tables for basic types because a c++ int needs to bind to a lua number.