Add Lua documentationfor static data

This commit is contained in:
Robin Gareus 2026-01-23 03:22:45 +01:00
parent d249b5014f
commit b774b71b8c
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04

View file

@ -1783,6 +1783,7 @@ public:
template <class T>
Namespace& addVariable (char const* name, T* pt, bool isWritable = true)
{
DATADOC ("Static Data", name, pt)
assert (lua_istable (L, -1));
rawgetfield (L, -1, "__propget");