07-11-2015, 04:22 PM
Actually, tolua is also a library that needs to be plugged in to the C++ program ($/lib/tolua++/src/lib/) in order for the bindings to support classes, inheritance, lifetime management, type-checking and such. It is a rather non-trivial piece of code that I wouldn't dare replicate.