diff options
| author | chai <chaifix@163.com> | 2021-11-19 15:33:48 +0800 |
|---|---|---|
| committer | chai <chaifix@163.com> | 2021-11-19 15:33:48 +0800 |
| commit | 1cd31d14c95f9d52e30fbc611df5da4b46f048d9 (patch) | |
| tree | 86dbda850f9b8ed26b152c6521adc0a777d6563a /Runtime/Lua/LuaBind/LuaBindState.h | |
| parent | 2ab7fad7b308debba0aacbf76831569f360d19a0 (diff) | |
*misc
Diffstat (limited to 'Runtime/Lua/LuaBind/LuaBindState.h')
| -rw-r--r-- | Runtime/Lua/LuaBind/LuaBindState.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Runtime/Lua/LuaBind/LuaBindState.h b/Runtime/Lua/LuaBind/LuaBindState.h index e8ac42d..680f6e2 100644 --- a/Runtime/Lua/LuaBind/LuaBindState.h +++ b/Runtime/Lua/LuaBind/LuaBindState.h @@ -104,6 +104,10 @@ namespace LuaBind bool HasField(int idx, int name, int type); bool HasKeys(int idx); + template <class T> + void PushLuaObject(const T& obj) { + obj.CastToLuaObject(*this); + } void PushLuaObject(const ILuaClass& lc); void PushTable(const INativeTable& tb); void PushNil(); |
