diff options
author | Robin Gareus <robin@gareus.org> | 2016-07-07 04:44:36 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2016-07-07 15:37:11 +0200 |
commit | 44a3f042a7a878af45ae893e0361d6a8be315da4 (patch) | |
tree | b7ee5d92f24aca24a7de4084f623dca0ea5eb68a /libs/lua/LuaBridge/detail/LuaRef.h | |
parent | 225a8a47a419e5e67a27b604bfd912498e3ad2cc (diff) |
prepare sharing C++ class instances across lua-interpreters
in particular: lua-lifefime (!) C++ instances.
This allows for dynamic allocation of custom user-data, bound to
the lifetime of the allocating lua-context.
Diffstat (limited to 'libs/lua/LuaBridge/detail/LuaRef.h')
-rw-r--r-- | libs/lua/LuaBridge/detail/LuaRef.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libs/lua/LuaBridge/detail/LuaRef.h b/libs/lua/LuaBridge/detail/LuaRef.h index 8fae1c038a..46c756445e 100644 --- a/libs/lua/LuaBridge/detail/LuaRef.h +++ b/libs/lua/LuaBridge/detail/LuaRef.h @@ -180,6 +180,11 @@ private: return *this; } + // the implementation needs UserdataPtr, which + // is not yet defined here. + // -> libs/ardour/lua_api.cc + Proxy& clone_instance (const void* key, void* p); + //-------------------------------------------------------------------------- /** Assign a new value to this table key. |