orangeduck/LuaAutoC — pull request #6 by boucman (2012-09-19 17:24:27+00:00)
Title: introspection and const type registration

hello orangeduck

I wasn't very strict in my developement so there are a bit of random stuff in these commits

I'm opening this PR mainly to have a place to discuss and to see if you are interested in my changes

* I added a way to iterate through struct members in a way similar to lua's "next" functionalities. This greatly simplifies writing lua structurs that can be iterated
* I registered the const variant of primitive types with a push and no pull methods, this makes access to these types easier for users
* I added a way to get the push and to functions of types.

The last one was needed because when someone atempts to write to a const member of a struct, luaautoc would raise an error before I have any chance to catch it. I needed to catch it because my structures are protected by a mutex that I need to release

tell me if you are interested and/or if there is anything you want me to rework

cheers
Boucman