diff options
Diffstat (limited to 'src/lua/common/Proxy.h')
-rw-r--r-- | src/lua/common/Proxy.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/lua/common/Proxy.h b/src/lua/common/Proxy.h index 101fe9c..643dd48 100644 --- a/src/lua/common/Proxy.h +++ b/src/lua/common/Proxy.h @@ -27,6 +27,18 @@ namespace lua } } + void retain() + { + if (reference != nullptr) + reference->retain(); + } + + void setUserdata(void* data) + { + if (reference != nullptr) + reference->setUserdata(data); + } + template<class T> Ref<T>& getRef() { |