diff options
author | chai <chaifix@163.com> | 2021-10-22 09:23:08 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2021-10-22 09:23:08 +0800 |
commit | 1f18d2afec632aa9361079ca3bcb5a7f2d73db3a (patch) | |
tree | dab695a32735d1f19ae74ea7e7d094371531dde8 /Runtime/Lua/LuaBind/LuaBindState.h | |
parent | 998a13b08c43b0813d1d4d38692ea7f8bd31c936 (diff) |
*misc
Diffstat (limited to 'Runtime/Lua/LuaBind/LuaBindState.h')
-rw-r--r-- | Runtime/Lua/LuaBind/LuaBindState.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Runtime/Lua/LuaBind/LuaBindState.h b/Runtime/Lua/LuaBind/LuaBindState.h index ec2a350..9028583 100644 --- a/Runtime/Lua/LuaBind/LuaBindState.h +++ b/Runtime/Lua/LuaBind/LuaBindState.h @@ -286,10 +286,13 @@ namespace LuaBind TYPE::RegisterFactoryClass(state); TYPE::RegisterClass(state); - // 自定义流程 + // 自定义注册内容 if (onRegisterFactoryClass) onRegisterFactoryClass(state, clsIdx, type, g_NameSpace); + // 清理栈 + lua_settop(state, clsIdx); + // 检测TYPE里面是否没有注册必须的方法 #define _assertmethod(I, NAME) \ GetField(I, NAME); \ |