Lua has no such thing out of the box, we would need to write support for it into ToLua++. Which would be pretty difficult.
I'm actually playing with the thought of abandoning ToLua++ completely and either use a different binding library, or not use a library at all - write a script that generates the bindings out of APIDump-style description that we'd write for the API. Adding API that way would be a bit more difficult than marking functions as "tolua_export", but on the other hand we could customize it completely, to support shared_ptrs, locked_ptrs etc. And we'd have a single source of both the bindings and the APIDump information, which would be really helpful for the documentation.
I'm actually playing with the thought of abandoning ToLua++ completely and either use a different binding library, or not use a library at all - write a script that generates the bindings out of APIDump-style description that we'd write for the API. Adding API that way would be a bit more difficult than marking functions as "tolua_export", but on the other hand we could customize it completely, to support shared_ptrs, locked_ptrs etc. And we'd have a single source of both the bindings and the APIDump information, which would be really helpful for the documentation.