SteveKChiu/lua-intf — pull request #36 by krisr (2014-10-23 01:15:34+00:00)
Title: Make beginClass/endClass work in nested classes

This is my quick stab at making it possible to define nested classes more elegantly like this:

.beginExtendClass("ControlAction")
.addConstructor(LUA_ARGS(wv::physics::RigidBody &))
.beginClass("Input")
.addConstructor(LUA_ARGS())
.endClass()
.endClass()

The API feels clean but I think the implementation could be improved a bit. I tried to minimize the amount of existing code I needed to change while making this work.