extend lua-doc to show properties

This commit is contained in:
Robin Gareus 2016-08-16 00:21:59 +02:00
parent 29feb8dec7
commit bc0bb6cae9
2 changed files with 20 additions and 1 deletions

View file

@ -790,6 +790,7 @@ private:
template <class TG, class TS>
Class <T>& addProperty (char const* name, TG (T::* get) () const, bool (T::* set) (TS))
{
DATADOC ("Property", name, get)
// Add to __propget in class and const tables.
{
rawgetfield (L, -2, "__propget");