diff options
author | chai <chaifix@163.com> | 2021-11-01 19:30:44 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-11-01 19:30:44 +0800 |
commit | 4b652abe1d76f1bcbe5d7583a8986256f50c483d (patch) | |
tree | daf81888f8e37c40483fcd309201bc33471b97fa /Runtime/Lua/LuaBind/LuaBindClass.hpp | |
parent | b7310c9cce95bfc9bfe135063ee0e97fbc654928 (diff) |
-LuaBindClass::RegisterNativeClass
Diffstat (limited to 'Runtime/Lua/LuaBind/LuaBindClass.hpp')
-rw-r--r-- | Runtime/Lua/LuaBind/LuaBindClass.hpp | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/Runtime/Lua/LuaBind/LuaBindClass.hpp b/Runtime/Lua/LuaBind/LuaBindClass.hpp index aed4741..dff4d30 100644 --- a/Runtime/Lua/LuaBind/LuaBindClass.hpp +++ b/Runtime/Lua/LuaBind/LuaBindClass.hpp @@ -102,7 +102,6 @@ namespace LuaBind friend class State; static void RegisterClassShared(State& state); - static void RegisterNativeClass(State& state); static void SetClassTableRef(State& state, int idx); static void PushClassTable(State& state); @@ -122,7 +121,6 @@ namespace LuaBind // 工厂类相关 static int __gc (lua_State*); - static int _GetRefTable (lua_State*); //--------------------------------------------------------------------------------// @@ -179,18 +177,6 @@ namespace LuaBind state.RegisterMethods(regTable); } - // 工厂类的成员,注册在class table - template<class TYPE, class BASE> - void NativeClass<TYPE, BASE>::RegisterNativeClass(State& state) - { - luaL_Reg regTable[] = { - { "GetRefTable", _GetRefTable }, - { NULL, NULL } - }; - - state.RegisterMethods(regTable); - } - template<class TYPE, class BASE> void NativeClass<TYPE, BASE>::SetClassTableRef(State& state, int idx) { @@ -560,17 +546,6 @@ namespace LuaBind return 1; } - template<class TYPE, class BASE> - int NativeClass<TYPE, BASE>::_GetRefTable(lua_State* L) - { - LUA_BIND_STATE(L); - TYPE* self = state.GetUserdata<TYPE>(1); - bool success = self->PushRefTable(state); - if (!success) - lua_pushnil(L); - return 1; - } - } #endif
\ No newline at end of file |