diff options
author | chai <chaifix@163.com> | 2018-10-14 22:52:40 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-10-14 22:52:40 +0800 |
commit | b1bbc998960fff2169dc5a992c47d08723472f9b (patch) | |
tree | 220f3bd5de2266e248884e11161dd715d7632ef2 /src/lua/common/Proxy.h | |
parent | fbf989f9950a38566e0fb0fc5b6a7aebc9f0fb45 (diff) |
*直接渲染字符串
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() { |